BikeInCity.Web.Services.Bike.GetCities C# (CSharp) Метод

GetCities() приватный Метод

private GetCities ( String countryId ) : List
countryId String
Результат 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);
            }
        }