func (VS *Server) newCategory(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 Category 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
	}
	newCategory, b := VS.getNewCategory(c, bson.NewObjectId())
	if !b {
		return
	}
	if VS.addCategoryToDatabase(c, newCategory, "h_data", "newCategory", "VS.addCategoryToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, newCategory, newCategory.ID)
		VS.goodFeedback(c, "/data/categories")
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Category with that name related with this Type, .Please choose another name or Type")
	}
}
// Stores the new Category information into the DataBase
Stores the new Category information into the DataBase
// Stores the new Category information into the DataBase
func (VS *Server) newCategory(c *gin.Context) {
	if getLanguage(c) != MainLanguage {
		VS.wrongFeedback(c, "To add a Category 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
	}
	newCategory, b := VS.getNewCategory(c, bson.NewObjectId())
	if !b {
		return
	}
	if VS.addCategoryToDatabase(c, newCategory, "h_data", "newCategory", "VS.addCategoryToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, newCategory, newCategory.ID)
		VS.goodFeedback(c, "/data/categories")
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Category with that name related with this Type, .Please choose another name or Type")
	}
}
func ( VS * Server ) newCategory ( c * gin . Context ) { if getLanguage ( c ) != MainLanguage { VS . wrongFeedback ( c , " " ) return } newCategory , b := VS . getNewCategory ( c , bson . NewObjectId ( ) ) if ! b { return } if VS . addCategoryToDatabase ( c , newCategory , " " , " " , " " ) { VS . registerAddDatabaseMovementFromCentral ( c , newCategory , newCategory . ID ) VS . goodFeedback ( c , " " ) } else { VS . wrongFeedback ( c , " " ) } }
Stores the new Category information into the DataBase
Stores the new Category information into the DataBase
// We only can introduce new information if the Language is the main Language