public TerritoryImportService(IDTOToEntityMapping mappingService, ITerritoryRepository territoryRepository)
 {
     _mappingService = mappingService;
     _territoryRepository = territoryRepository;
     _existingteritories = _territoryRepository.GetAll(true).ToList();
 }
示例#2
0
        public IHttpActionResult TerritoryGetAll()
        {
            var allRecords = tRepo.GetAll();

            return(Ok(allRecords));
        }
示例#3
0
 public IEnumerable <Territory> GetTerritories() => _repo.GetAll();
        public async Task <IHttpActionResult> GetAll()
        {
            var results = _mapper.Map <IEnumerable <TerritoryDto> >(_territoryRepository.GetAll());

            return(Ok(results));
        }