public void Delete(int id) { var account = context.Accounts.Find(id); if (account != null) { context.Remove(account); } }