예제 #1
0
        public DistrictsDto Get(int districtId)
        {
            var entity = DistrictsRepository.Get(districtId);

            return(new DistrictsDto
            {
                DistrictId = entity.DistrictId,
                Name = entity.Name
            });
        }
예제 #2
0
 public async Task <IEnumerable <District> > Get()
 {
     return(await _repository.Get());
 }