コード例 #1
0
        public async Task <CityDomainModel> GetByCityNameAsync(string cityName)
        {
            var city = await _citiesRepository.GetByCityNameAsync(cityName);

            if (city == null)
            {
                return(null);
            }

            CityDomainModel cityDomainModel = new CityDomainModel
            {
                Id          = city.Id,
                Name        = city.Name,
                CinemasList = new List <CinemaDomainModel>()
            };

            return(cityDomainModel);
        }