示例#1
0
 public async Task <int> AddCityAsync(City city)
 {
     return(await _cityRepository.AddCityAsync(city));
 }
示例#2
0
        public async Task <int> AddCityAsync(CityAddTransferModel cityTransfer)
        {
            var city = _mapper.Map <CityAddTransferModel, City>(cityTransfer);

            return(await _cityRepository.AddCityAsync(city));
        }