public ActionResult <SyncCityMessageResponseModel> GetCityFromAPI() { SyncCityMessageResponseModel res = new SyncCityMessageResponseModel(); try { CityBL bl = new CityBL(db); var query = bl.SyncCity(AppSettings.URLSyncProvinceCity); return(query); } catch (Exception ex) { res.message = ex.Message; res.error = false; return(res); } }