BikeInCity.Web.Services.Bike.GetCities C# (CSharp) Méthode

GetCities() private méthode

private GetCities ( String countryId ) : List
countryId String
Résultat List
        public List<CityDto> GetCities(String countryId)
        {
            try
            {
                int countryID = Convert.ToInt32(countryId);
                var cities = _repository.Find<City>(x => x.Country.Id == countryID);
                return Mapper.Map<List<CityDto>>(cities);
            }
            catch (FormatException ex)
            {
                _log.Error(ex.Message,ex);
                throw new WebFaultException(HttpStatusCode.BadRequest);
            }
        }