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