public ActionResult <City> Create([FromBody] City city) { try { return(Ok(_service.Create(city))); } catch (System.Exception error) { return(BadRequest(error.Message)); } }
public ActionResult <City> Create([FromBody] City city) { try { return(Ok(_service.Create(city))); } catch (System.Exception error) { return(BadRequest(error.Message)); } }