public void UpdateOrderDetail(OrderDetail orderDetail) { _bitcoinEntities.OrderDetails.Attach(orderDetail); _bitcoinEntities.Entry(orderDetail).State = EntityState.Modified; _bitcoinEntities.SaveChanges(); }
/// <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(); }
/// <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(); }