func (VS *Server) newCheck(c *gin.Context) {
	idProduct, b := VS.getIDParamFromURL(c, "idproduct")
	if !b {
		return
	}
	// We only can introduce new information if the Language is the main Language
	if getLanguage(c) != MainLanguage {
		VS.wrongFeedback(c, "To add a Video Check in a Language that is not the Main language of the app, you need to first add the step in the main language, change to the language desired for the modification, and modify the step that you want to translate")
		return
	}
	newCheck, b := VS.getNewProductCheckList(c, bson.NewObjectId(), idProduct)
	if !b {
		return
	}
	if VS.isTranslation(c, newCheck, newCheck.ID) {
		return
	}
	idservicetype, b := VS.getIDParamFromURL(c, "idservicetype")
	if !b {
		return
	}
	VS.addElementToDatabaseWithRegisterFromCentral(c, newCheck, newCheck.ID, "h_videos", "newCheck", "v.addCheckToDatabase")
	VS.goodFeedback(c, "new-check/:idproduct/"+idservicetype.Hex())
}
// Creates a new check for the video course
Creates a new check for the video course
// Creates a new check for the video course
func (VS *Server) newCheck(c *gin.Context) {
	idProduct, b := VS.getIDParamFromURL(c, "idproduct")
	if !b {
		return
	}
	if getLanguage(c) != MainLanguage {
		VS.wrongFeedback(c, "To add a Video Check in a Language that is not the Main language of the app, you need to first add the step in the main language, change to the language desired for the modification, and modify the step that you want to translate")
		return
	}
	newCheck, b := VS.getNewProductCheckList(c, bson.NewObjectId(), idProduct)
	if !b {
		return
	}
	if VS.isTranslation(c, newCheck, newCheck.ID) {
		return
	}
	idservicetype, b := VS.getIDParamFromURL(c, "idservicetype")
	if !b {
		return
	}
	VS.addElementToDatabaseWithRegisterFromCentral(c, newCheck, newCheck.ID, "h_videos", "newCheck", "v.addCheckToDatabase")
	VS.goodFeedback(c, "new-check/:idproduct/"+idservicetype.Hex())
}
func ( VS * Server ) newCheck ( c * gin . Context ) { idProduct , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } if getLanguage ( c ) != MainLanguage { VS . wrongFeedback ( c , " " ) return } newCheck , b := VS . getNewProductCheckList ( c , bson . NewObjectId ( ) , idProduct ) if ! b { return } if VS . isTranslation ( c , newCheck , newCheck . ID ) { return } idservicetype , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } VS . addElementToDatabaseWithRegisterFromCentral ( c , newCheck , newCheck . ID , " " , " " , " " ) VS . goodFeedback ( c , " " + idservicetype . Hex ( ) ) }
Creates a new check for the video course
Creates a new check for the video course
// We only can introduce new information if the Language is the main Language