public IActionResult AddVillage([FromBody] VillageAdd vil) { if (_ts.Add(vil.Token, vil.IdUser, vil.village)) { return(Ok()); } return(BadRequest()); }
public IActionResult SyncVillage([FromBody] VillageAdd vil) { var ListVillage = _ts.Sync(vil.Token, vil.IdUser); if (ListVillage != null) { return(Ok(ListVillage)); } return(BadRequest()); }