func (VS *Server) editServiceType(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	oldserType := VS.getServiceTypeByID(c, id, "h_data", "editServiceType", "oldserType := VS.getServiceTypeByID", true)
	newserType, b := VS.getNewServiceType(c, id)
	if !b {
		return
	}
	VS.editElementInDatabaseWithRegisterFromCentral(c, newserType, oldserType, newserType.ID, "h_data", "editVillage", "VS.editElementInDatabaseWithRegisterFromCentral")
	VS.goodFeedback(c, "/data/types-service")
}
// Edit the Service Type into the DataBase
Edit the Service Type into the DataBase
// Edit the Service Type into the DataBase
func (VS *Server) editServiceType(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	oldserType := VS.getServiceTypeByID(c, id, "h_data", "editServiceType", "oldserType := VS.getServiceTypeByID", true)
	newserType, b := VS.getNewServiceType(c, id)
	if !b {
		return
	}
	VS.editElementInDatabaseWithRegisterFromCentral(c, newserType, oldserType, newserType.ID, "h_data", "editVillage", "VS.editElementInDatabaseWithRegisterFromCentral")
	VS.goodFeedback(c, "/data/types-service")
}
func ( VS * Server ) editServiceType ( c * gin . Context ) { id , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } oldserType := VS . getServiceTypeByID ( c , id , " " , " " , " " , true ) newserType , b := VS . getNewServiceType ( c , id ) if ! b { return } VS . editElementInDatabaseWithRegisterFromCentral ( c , newserType , oldserType , newserType . ID , " " , " " , " " ) VS . goodFeedback ( c , " " ) }
Edit the Service Type into the DataBase
Edit the Service Type into the DataBase