public DistrictsDto Get(int districtId) { var entity = DistrictsRepository.Get(districtId); return(new DistrictsDto { DistrictId = entity.DistrictId, Name = entity.Name }); }
public async Task <IEnumerable <District> > Get() { return(await _repository.Get()); }