Beispiel #1
0
        public bool Remove(int id)
        {
            OrderRow orderRow = Find(id);

            if (orderRow == null)
            {
                return(false);
            }
            return(_orderRowRepo.Remove(orderRow));
        }
Beispiel #2
0
        public OrderRow Create(OrderRowViewModel orderRow)
        {
            OrderRow newOrderRow = new OrderRow()
            {
                OrderId    = orderRow.OrderId,
                ProductId  = orderRow.ProductId, /*the choosen product*/
                Price      = orderRow.Price,
                GlutenFree = orderRow.GlutenFree
            };

            return(_orderRowRepo.Create(newOrderRow));
        }
Beispiel #3
0
 public OrderRow Update(OrderRow orderRow)
 {
     return(_orderRowRepo.Update(orderRow));
 }