Пример #1
0
 public ActionResult <City> Create([FromBody] City city)
 {
     try
     {
         return(Ok(_service.Create(city)));
     }
     catch (System.Exception error)
     {
         return(BadRequest(error.Message));
     }
 }