Esempio n. 1
0
        public ICollection <OrderProduct> GetOrderProduct(int orderId)
        {
            List <BLL.Models.OrderProduct> list = new List <BLL.Models.OrderProduct>();

            foreach (var item in _dal.GetOrderProduct(orderId))
            {
                var orderproduct = new BLL.Models.OrderProduct
                {
                    Id        = item.Id,
                    OrderId   = item.OrderId,
                    ProductId = item.ProductId
                };
                list.Add(orderproduct);
            }
            return(list);
        }