コード例 #1
0
ファイル: OrderRepo.cs プロジェクト: somishri/backend-models
 public void AddOrder(OrderPlaces orderPlace)
 {
     using (var context = new shopEntities())
     {
         context.OrderPlaces.Add(orderPlace);
         context.SaveChanges();
     }
 }
コード例 #2
0
 public bool PostOrder(OrderPlaces orderPlace)
 {
     orderRepo.AddOrder(orderPlace);
     return(true);
 }