public void AddOrder(BestEats.Logic.Order DBorder) { Order order = new Order { OrderId = DBorder.OrderId, CustomerId = DBorder.CustomerId, StoreId = DBorder.StoreId, ProductId = DBorder.ProductId, ItemName = DBorder.ItemName, ProductQuantity = DBorder.ProductQuantity, OrderPurchaseDate = DBorder.OrderPurchaseDate }; _context.Add(order); Save(); }
public void validateAddOrderInputsSucceed(int OrderIdtest, int CustomerIdTest, int StoreIdTest, int ProductIdTest, string ItemNameTest, int ProductQuantityTest, DateTimeOffset OrderPurchaseDateTest) { BestEats.Logic.Order ordertest = new BestEats.Logic.Order(OrderIdtest, CustomerIdTest, StoreIdTest, ProductIdTest, ItemNameTest, ProductQuantityTest, OrderPurchaseDateTest); }
public void AddNewOrder(BestEats.Logic.Order order) { _orderRepo.AddOrder(order); }