public void UpdateOrderDetail(OrderDetail orderDetail)
 {
     _bitcoinEntities.OrderDetails.Attach(orderDetail);
     _bitcoinEntities.Entry(orderDetail).State = EntityState.Modified;
     _bitcoinEntities.SaveChanges();
 }
예제 #2
0
 /// <summary>
 /// Update a single admin user
 /// </summary>
 /// <param name="adminUser"> Properties of AdminUser class </param>
 public void UpdateAdminUser(AdminUser adminUser)
 {
     _bitcoinEntities.AdminUsers.Attach(adminUser);
     _bitcoinEntities.Entry(adminUser).State = EntityState.Modified;
     _bitcoinEntities.SaveChanges();
 }
예제 #3
0
 /// <summary>
 /// Update values of Order
 /// </summary>
 /// <param name="bid"> models of order</param>
 public void UpdateOrder(Order order)
 {
     _bitCoinEntities.Orders.Attach(order);
     _bitCoinEntities.Entry(order).State = EntityState.Modified;
     _bitCoinEntities.SaveChanges();
 }