public void account_delete(int ID) { account.Delete(ID); Insert_account_GridView.DataBind(); Update_account_GridView.DataBind(); Delete_account_GridView.DataBind(); }
public account account_insert() { account.Bank_ID = Convert.ToInt32(Insert_Bank_ID_txt.Text); account.Account_Num = Insert_Account_Num_txt.Text; account.Type = Insert_Type_txt.Text; account = account.Insert(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); }