func (VS *Server) addCategoryTypeToDatabase(c *gin.Context, ct CategoryType, class string, method string, operation string) bool {
	if VS.existCategoryTypeName(ct.Name) {
		return false
	}
	err := VS.DataBase.Upsert(ct.ID, ct)
	VS.checkOperation(c, class, method, operation, err)
	return true
}
// This method adds the Category type to DB
This method adds the Category type to DB
// This method adds the Category type to DB
func (VS *Server) addCategoryTypeToDatabase(c *gin.Context, ct CategoryType, class string, method string, operation string) bool {
	if VS.existCategoryTypeName(ct.Name) {
		return false
	}
	err := VS.DataBase.Upsert(ct.ID, ct)
	VS.checkOperation(c, class, method, operation, err)
	return true
}
func ( VS * Server ) addCategoryTypeToDatabase ( c * gin . Context , ct CategoryType , class string , method string , operation string ) bool { if VS . existCategoryTypeName ( ct . Name ) { return false } err := VS . DataBase . Upsert ( ct . ID , ct ) VS . checkOperation ( c , class , method , operation , err ) return true }
This method adds the Category type to DB
This method adds the Category type to DB