func (VS *Server) existLocalVillage(c *gin.Context, class string, method string, operation string) bool {
	// localvillage is the variable we write on the terminal to execute and run the app
	var village []Village
	err := VS.DataBase.Find(&village, bolthold.Where("Name").Eq(localVillage))
	VS.checkOperation(c, class, method, operation, err)
	if len(village) != 1 {
		return false
	}
	return true
}
// This method returns our Local Village, that is the village of the server from the comand line to initiate the app
This method returns our Local Village, that is the village of the server from the comand line to initiate the app
// This method returns our Local Village that is the village of the server from the comand line to initiate the app
func (VS *Server) existLocalVillage(c *gin.Context, class string, method string, operation string) bool {
	var village []Village
	err := VS.DataBase.Find(&village, bolthold.Where("Name").Eq(localVillage))
	VS.checkOperation(c, class, method, operation, err)
	if len(village) != 1 {
		return false
	}
	return true
}
func ( VS * Server ) existLocalVillage ( c * gin . Context , class string , method string , operation string ) bool { var village [ ] Village err := VS . DataBase . Find ( & village , bolthold . Where ( " " ) . Eq ( localVillage ) ) VS . checkOperation ( c , class , method , operation , err ) if len ( village ) != 1 { return false } return true }
This method returns our Local Village, that is the village of the server from the comand line to initiate the app
This method returns our Local Village that is the village of the server from the comand line to initiate the app
// localvillage is the variable we write on the terminal to execute and run the app