private void GetBankSubsidiary() { List <BankSubsidiary> banksubsidiary = BankBAL.GetBankSubsidiary(Request.QueryString); if ((banksubsidiary != null) && banksubsidiary.Count > 0) { Response.Write(banksubsidiary.ToJSON()); } else { Response.Write("No Result"); } }
private void GetBankList() { List <string> bankName = BankBAL.GetBankList(); if ((bankName != null) && bankName.Count > 0) { Response.Write(bankName.ToJSON()); } else { Response.Write("No Result"); } }
public IActionResult Index() { BankBAL bankBAL = new BankBAL(); var data = bankBAL.ReadDetails(); IList <Banks> banklist = new List <Banks>(); foreach (DataRow row in data.Tables[0].Rows) { Banks banks = new Banks() { BankId = int.Parse(row["BankId"].ToString()), BankName = row["BankName"].ToString(), BankAdress = row["BankAdress"].ToString(), }; banklist.Add(banks); } return(View(banklist)); }
private void ManageBank() { Response.Write(BankBAL.ManageBank(Request.QueryString)); }