public IEnumerable <DepotDTO> GetAll() { IEnumerable <DepotDTO> allDepots = depots.GetAll().ToList().Select(depot => depot.ToDTO()).ToList(); foreach (var depot in allDepots) { AddCountryToDepot(depot); } return(allDepots); }
IEnumerable <DepotPivot> IDepotService.GetALL() { IEnumerable <GES_Depot> depots = depotRepository.GetAll().ToList(); IEnumerable <DepotPivot> codesTVAPivot = Mapper.Map <IEnumerable <GES_Depot>, IEnumerable <DepotPivot> >(depots); return(codesTVAPivot); }
IEnumerable <Depot> IDepotService.GetAll() { return(_depotRepository.GetAll()); }