public void AddOrder(OrderPlaces orderPlace) { using (var context = new shopEntities()) { context.OrderPlaces.Add(orderPlace); context.SaveChanges(); } }
public bool PostOrder(OrderPlaces orderPlace) { orderRepo.AddOrder(orderPlace); return(true); }