public ActionResult <AddCityResponseModel> AddCity([FromBody] AddCityInputModel data) { AddCityResponseModel res = new AddCityResponseModel(); try { CityBL bl = new CityBL(db); var res2 = bl.Save(data); res.data = res2; res.Message = res.Message; res.Response = true; return(res); } catch (Exception ex) { res.Message = ex.Message; res.Response = false; return(res); } }