public string GetCityById(int placeId) { CityEntityDL cityEntity = cityCache.GetCityById(placeId); string city = cityEntity.CityName; return(city); }
public string GetCityById(int cityId) { CityEntityDL cityEntity = cityCache.GetCityById(cityId); string cityName = cityEntity.CityName; return(cityName); }
public bool FindCity(AdminCitiesViewModel adminCitiesViewModel) { bool found; int iDCity = GetCityId(adminCitiesViewModel.IdCity); CityEntityDL cityFromDB = cityCache.GetCityById(iDCity); if (cityFromDB == null) { return(found = false); } CityToDelete = new CityEntity(cityFromDB.Id, cityFromDB.CityName); return(found = true); }