func (VS *Server) showVideoCourseProblem(c *gin.Context) {
	idProd, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	product, _ := VS.getVideoCourseByID(c, idProd, "h_videos", "showVideoCourseProblem", "product := v.getProductByID", true)
	user := VS.getUserFomCookie(c, "h_videos", "showVideoCourseProblem", "user := VS.getUserFomCookie")

	// Get all Problems from the Product from the user
	problemsUser := VS.getProblemsFromUserByProduct(c, idProd, user.ID, "handlers_manager", "showVideoCourseProblem", "problemsUser := VS.getProblemsFromUserByProduct")
	// Get all Problems from the Product NOT from the user
	problemsOthers := VS.getProblemsNOTFromUserByProduct(c, idProd, user.ID, "handlers_manager", "showVideoCourseProblem", "problemsOthers := VS.getProblemsNOTFromUserByProduct")
	service, b := VS.getOurService(c, "h_videos", "showVideoCourseProblem", "service, _ := VS.getOurService")
	if !b {
		return
	}

	render(c, gin.H{
		"problemsUser":   problemsUser,
		"problemsOthers": problemsOthers,
		"product":        product,
		"serviceType":    service.TypeID,
	}, "video-course-problems.html")
}
// Shows the problems related with the video course
Shows the problems related with the video course
// Shows the problems related with the video course
func (VS *Server) showVideoCourseProblem(c *gin.Context) {
	idProd, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	product, _ := VS.getVideoCourseByID(c, idProd, "h_videos", "showVideoCourseProblem", "product := v.getProductByID", true)
	user := VS.getUserFomCookie(c, "h_videos", "showVideoCourseProblem", "user := VS.getUserFomCookie")
	problemsUser := VS.getProblemsFromUserByProduct(c, idProd, user.ID, "handlers_manager", "showVideoCourseProblem", "problemsUser := VS.getProblemsFromUserByProduct")
	problemsOthers := VS.getProblemsNOTFromUserByProduct(c, idProd, user.ID, "handlers_manager", "showVideoCourseProblem", "problemsOthers := VS.getProblemsNOTFromUserByProduct")
	service, b := VS.getOurService(c, "h_videos", "showVideoCourseProblem", "service, _ := VS.getOurService")
	if !b {
		return
	}
	render(c, gin.H{
		"problemsUser":   problemsUser,
		"problemsOthers": problemsOthers,
		"product":        product,
		"serviceType":    service.TypeID,
	}, "video-course-problems.html")
}
func ( VS * Server ) showVideoCourseProblem ( c * gin . Context ) { idProd , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } product , _ := VS . getVideoCourseByID ( c , idProd , " " , " " , " " , true ) user := VS . getUserFomCookie ( c , " " , " " , " " ) problemsUser := VS . getProblemsFromUserByProduct ( c , idProd , user . ID , " " , " " , " " ) problemsOthers := VS . getProblemsNOTFromUserByProduct ( c , idProd , user . ID , " " , " " , " " ) service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } render ( c , gin . H { " " : problemsUser , " " : problemsOthers , " " : product , " " : service . TypeID , } , " " ) }
Shows the problems related with the video course
Shows the problems related with the video course
// Get all Problems from the Product from the user // Get all Problems from the Product NOT from the user