func (VS *Server) newService(c *gin.Context) {
	service, b := VS.getNewService(c, bson.NewObjectId())
	if !b {
		return
	}
	if VS.addServiceToDatabase(c, service, "h_data", "newService", "VS.addServiceToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, service, service.ID)
		VS.goodFeedback(c, "/data/villages")
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Service with that name in that Village. Please choose another name ")
	}
}
// Stores the new Service information into the DataBase
Stores the new Service information into the DataBase
// Stores the new Service information into the DataBase
func (VS *Server) newService(c *gin.Context) {
	service, b := VS.getNewService(c, bson.NewObjectId())
	if !b {
		return
	}
	if VS.addServiceToDatabase(c, service, "h_data", "newService", "VS.addServiceToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, service, service.ID)
		VS.goodFeedback(c, "/data/villages")
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Service with that name in that Village. Please choose another name ")
	}
}
func ( VS * Server ) newService ( c * gin . Context ) { service , b := VS . getNewService ( c , bson . NewObjectId ( ) ) if ! b { return } if VS . addServiceToDatabase ( c , service , " " , " " , " " ) { VS . registerAddDatabaseMovementFromCentral ( c , service , service . ID ) VS . goodFeedback ( c , " " ) } else { VS . wrongFeedback ( c , " " ) } }
Stores the new Service information into the DataBase
Stores the new Service information into the DataBase