Esempio n. 1
0
        public DistrictsDto Get(int districtId)
        {
            var entity = DistrictsRepository.Get(districtId);

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