public IEnumerable <DepotDTO> GetAll()
        {
            IEnumerable <DepotDTO> allDepots = depots.GetAll().ToList().Select(depot => depot.ToDTO()).ToList();

            foreach (var depot in allDepots)
            {
                AddCountryToDepot(depot);
            }

            return(allDepots);
        }
Exemple #2
0
        IEnumerable <DepotPivot> IDepotService.GetALL()
        {
            IEnumerable <GES_Depot>  depots        = depotRepository.GetAll().ToList();
            IEnumerable <DepotPivot> codesTVAPivot = Mapper.Map <IEnumerable <GES_Depot>, IEnumerable <DepotPivot> >(depots);

            return(codesTVAPivot);
        }
Exemple #3
0
 IEnumerable <Depot> IDepotService.GetAll()
 {
     return(_depotRepository.GetAll());
 }