Beispiel #1
0
    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");
        }
    }
Beispiel #2
0
    private void GetBankList()
    {
        List <string> bankName = BankBAL.GetBankList();

        if ((bankName != null) && bankName.Count > 0)
        {
            Response.Write(bankName.ToJSON());
        }
        else
        {
            Response.Write("No Result");
        }
    }
Beispiel #3
0
        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));
        }
Beispiel #4
0
 private void ManageBank()
 {
     Response.Write(BankBAL.ManageBank(Request.QueryString));
 }