agent.Balance = agent.Balance - Convert.ToDouble(USDBalance); db.Entry(agent).State = EntityState.Modified; db.SaveChanges();