public bool updateAccount(int id_account, string username_account, string password_account, int id_user) { account Account = new account(); bool result = Account.Update(id_account, username_account, password_account, id_user); return(result); }
public account account_update(int ID) { account = account.Select(ID); account.Account_ID = Convert.ToInt32(Update_Account_ID_txt.Text); account.Bank_ID = Convert.ToInt32(Update_Bank_ID_txt.Text); account.Account_Num = Update_Account_Num_txt.Text; account.Type = Update_Type_txt.Text; account.Update(account); Insert_account_GridView.DataBind(); Update_account_GridView.DataBind(); Delete_account_GridView.DataBind(); return(account); }
public account account_update(int ID) { account = account.Select(ID); account.Account_ID = Convert.ToInt32(Update_Account_ID_txt.Text); account.Bank_ID = Convert.ToInt32(Update_Bank_ID_txt.Text); account.Account_Num = Update_Account_Num_txt.Text; account.Type = Update_Type_txt.Text; account.Update(account); Insert_account_GridView.DataBind(); Update_account_GridView.DataBind(); Delete_account_GridView.DataBind(); return account; }