public void bank_delete(int ID) { bank.Delete(ID); Insert_bank_GridView.DataBind(); Update_bank_GridView.DataBind(); Delete_bank_GridView.DataBind(); }
public bank bank_insert() { bank.Routing_Num = Insert_Routing_Num_txt.Text; bank.Name = Insert_Name_txt.Text; bank.IsFDIC = Convert.ToBoolean(Insert_IsFDIC_txt.Text); bank = bank.Insert(bank); Insert_bank_GridView.DataBind(); Update_bank_GridView.DataBind(); Delete_bank_GridView.DataBind(); return(bank); }
public bank bank_update(int ID) { bank = bank.Select(ID); bank.Bank_ID = Convert.ToInt32(Update_Bank_ID_txt.Text); bank.Routing_Num = Update_Routing_Num_txt.Text; bank.Name = Update_Name_txt.Text; bank.IsFDIC = Convert.ToBoolean(Update_IsFDIC_txt.Text); bank.Update(bank); Insert_bank_GridView.DataBind(); Update_bank_GridView.DataBind(); Delete_bank_GridView.DataBind(); return(bank); }