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

            if (ListVillage != null)
            {
                return(Ok(ListVillage));
            }
            return(BadRequest());
        }