func (VS *Server) newServiceType(c *gin.Context) {
	serviceType, b := VS.getNewServiceType(c, bson.NewObjectId())
	if !b {
		return
	}
	if VS.addServiceTypeToDatabase(c, serviceType, "h_data", "newServiceType", "v.addServiceTypeToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, serviceType, serviceType.ID)
		VS.goodFeedback(c, "/data/types-service")
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Item with that name in the same category. Please choose another name or category")
	}
}
// Creates a new Service Type
Creates a new Service Type
// Creates a new Service Type
func (VS *Server) newServiceType(c *gin.Context) {
	serviceType, b := VS.getNewServiceType(c, bson.NewObjectId())
	if !b {
		return
	}
	if VS.addServiceTypeToDatabase(c, serviceType, "h_data", "newServiceType", "v.addServiceTypeToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, serviceType, serviceType.ID)
		VS.goodFeedback(c, "/data/types-service")
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Item with that name in the same category. Please choose another name or category")
	}
}
func ( VS * Server ) newServiceType ( c * gin . Context ) { serviceType , b := VS . getNewServiceType ( c , bson . NewObjectId ( ) ) if ! b { return } if VS . addServiceTypeToDatabase ( c , serviceType , " " , " " , " " ) { VS . registerAddDatabaseMovementFromCentral ( c , serviceType , serviceType . ID ) VS . goodFeedback ( c , " " ) } else { VS . wrongFeedback ( c , " " ) } }
Creates a new Service Type
Creates a new Service Type