Esempio n. 1
0
        public City GetCity(string cityName)
        {
            if (cityName == null)
            {
                throw new ArgumentNullException("cityName");
            }

            var retrievedCityName = _repository.GetCityName(x => x.Name == cityName);

            return(retrievedCityName != null ? retrievedCityName.City : null);
        }