public bool Remove(int id) { OrderRow orderRow = Find(id); if (orderRow == null) { return(false); } return(_orderRowRepo.Remove(orderRow)); }
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)); }
public OrderRow Update(OrderRow orderRow) { return(_orderRowRepo.Update(orderRow)); }