protected void GetBank() { List <Bankstbl> lstBank = new List <Bankstbl>(); Bankstbl bnk = new Bankstbl(); BankBL objbankBL = new BankBL(); bnk.Status = 1; lstBank = objbankBL.GetBankIsActive(bnk).ToList(); //lstBank = objbankBL.GetAllBanks(bnk).ToList(); ListItem l = new ListItem(); l.Text = "--Select--"; l.Value = 0.ToString(); DdlToAccount.Items.Add(l); foreach (var cnt in lstBank) { ListItem li = new ListItem(); li.Text = cnt.BankName; li.Value = cnt.BankID.ToString(); DdlToAccount.Items.Add(li); } }
public IEnumerable <Bankstbl> GetBankIsActive(Bankstbl ba) { return(objBankDA.BanksAll(7, ba)); }
public IEnumerable <Bankstbl> UpdateBankIsActive(Bankstbl ba) { return(objBankDA.BanksAll(6, ba)); }
public IEnumerable <Bankstbl> DeleteBank(Bankstbl ba) { return(objBankDA.BanksAll(5, ba)); }
public IEnumerable <Bankstbl> UpdateBank(Bankstbl ba) { return(objBankDA.BanksAll(4, ba)); }
public IEnumerable <Bankstbl> InsertBank(Bankstbl ba) { return(objBankDA.BanksAll(3, ba)); }
public IEnumerable <Bankstbl> GetBankbyId(Bankstbl ba) { return(objBankDA.BanksAll(2, ba)); }
public IEnumerable <Bankstbl> GetAllBanks(Bankstbl ba) { return(objBankDA.BanksAll(1, ba)); }