public TerritoryImportService(IDTOToEntityMapping mappingService, ITerritoryRepository territoryRepository) { _mappingService = mappingService; _territoryRepository = territoryRepository; _existingteritories = _territoryRepository.GetAll(true).ToList(); }
public IHttpActionResult TerritoryGetAll() { var allRecords = tRepo.GetAll(); return(Ok(allRecords)); }
public IEnumerable <Territory> GetTerritories() => _repo.GetAll();
public async Task <IHttpActionResult> GetAll() { var results = _mapper.Map <IEnumerable <TerritoryDto> >(_territoryRepository.GetAll()); return(Ok(results)); }