public static Entities.OrderInTime InsertOrderInTime(Context context, Entities.OrderInTime orderIT) { Entities.OrderInTime order = new Entities.OrderInTime { TableID = orderIT.TableID, WaiterID = orderIT.WaiterID }; context.OrdersInTime.Add(order); context.SaveChanges(); return order; }
public static Entities.OrderInTime InsertOrderInTime(Context context, Entities.OrderInTime orderIT) { Entities.OrderInTime order = new Entities.OrderInTime { TableID = orderIT.TableID, WaiterID = orderIT.WaiterID }; context.OrdersInTime.Add(order); context.SaveChanges(); return(order); }