func (VS *Server) newVideoCourse(c *gin.Context) {
	// We only can introduce new information if the Language is the main Language
	if getLanguage(c) != MainLanguage {
		VS.wrongFeedback(c, "To add a Video Course 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
	}
	video, b := VS.getNewVideoCourse(c, bson.NewObjectId())
	if !b {
		return
	}
	idservicetype, b := VS.getIDParamFromURL(c, "idservicetype")
	if !b {
		return
	}

	if VS.addVideoCourseToDatabase(c, video, "h_videos", "newVideoCourse", "v.addProductToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, video, video.ID)
		VS.goodFeedback(c, "videos/see-list/"+idservicetype.Hex())
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Video with that name.Please choose another name ")
	}
}
// Stores the new VideoCourse information into the DataBase
Stores the new VideoCourse information into the DataBase
// Stores the new VideoCourse information into the DataBase
func (VS *Server) newVideoCourse(c *gin.Context) {
	if getLanguage(c) != MainLanguage {
		VS.wrongFeedback(c, "To add a Video Course 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
	}
	video, b := VS.getNewVideoCourse(c, bson.NewObjectId())
	if !b {
		return
	}
	idservicetype, b := VS.getIDParamFromURL(c, "idservicetype")
	if !b {
		return
	}
	if VS.addVideoCourseToDatabase(c, video, "h_videos", "newVideoCourse", "v.addProductToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, video, video.ID)
		VS.goodFeedback(c, "videos/see-list/"+idservicetype.Hex())
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Video with that name.Please choose another name ")
	}
}
func ( VS * Server ) newVideoCourse ( c * gin . Context ) { if getLanguage ( c ) != MainLanguage { VS . wrongFeedback ( c , " " ) return } video , b := VS . getNewVideoCourse ( c , bson . NewObjectId ( ) ) if ! b { return } idservicetype , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } if VS . addVideoCourseToDatabase ( c , video , " " , " " , " " ) { VS . registerAddDatabaseMovementFromCentral ( c , video , video . ID ) VS . goodFeedback ( c , " " + idservicetype . Hex ( ) ) } else { VS . wrongFeedback ( c , " " ) } }
Stores the new VideoCourse information into the DataBase
Stores the new VideoCourse information into the DataBase
// We only can introduce new information if the Language is the main Language