Ejemplo n.º 1
0
        public ICollection <Delivery> GetAllDelivery()
        {
            List <BLL.Models.Delivery> list = new List <BLL.Models.Delivery>();

            foreach (var item in _dal.GetAllDelivery())
            {
                var delivery = new BLL.Models.Delivery
                {
                    Id   = item.Id,
                    Name = item.Name
                };
                list.Add(delivery);
            }
            return(list);
        }