func (VS *Server) newVillage(c *gin.Context) {
	prefix, b := VS.getStringFromHTML(c, "prefix", "Village")
	if !b {
		return
	}
	village, b := VS.getNewVillage(c, bson.NewObjectId(), prefix)
	if !b {
		return
	}
	if VS.addVillageToDatabase(c, village, "h_data", "newVillage", "VS.addVillageToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, village, village.ID)
		VS.goodFeedback(c, "data/villages")
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Village with that Name or Prefix. Please choose another name ")
	}
}
// Stores the new Village information into the DataBase
Stores the new Village information into the DataBase
// Stores the new Village information into the DataBase
func (VS *Server) newVillage(c *gin.Context) {
	prefix, b := VS.getStringFromHTML(c, "prefix", "Village")
	if !b {
		return
	}
	village, b := VS.getNewVillage(c, bson.NewObjectId(), prefix)
	if !b {
		return
	}
	if VS.addVillageToDatabase(c, village, "h_data", "newVillage", "VS.addVillageToDatabase") {
		VS.registerAddDatabaseMovementFromCentral(c, village, village.ID)
		VS.goodFeedback(c, "data/villages")
	} else {
		VS.wrongFeedback(c, "Sorry, there is already one Village with that Name or Prefix. Please choose another name ")
	}
}
func ( VS * Server ) newVillage ( c * gin . Context ) { prefix , b := VS . getStringFromHTML ( c , " " , " " ) if ! b { return } village , b := VS . getNewVillage ( c , bson . NewObjectId ( ) , prefix ) if ! b { return } if VS . addVillageToDatabase ( c , village , " " , " " , " " ) { VS . registerAddDatabaseMovementFromCentral ( c , village , village . ID ) VS . goodFeedback ( c , " " ) } else { VS . wrongFeedback ( c , " " ) } }
Stores the new Village information into the DataBase
Stores the new Village information into the DataBase