Пример #1
0
        public ActionResult CreateGroupBankDetails(int Id)
        {
            SelectList    banks       = GetDropDownListByMasterCode(Enums.RefMasterCodes.BANK_NAME);
            SelectList    branches    = GetDropDownListByMasterCode(Enums.RefMasterCodes.BANK_NAME);
            SelectList    accountType = GetDropDownListByMasterCode(Enums.RefMasterCodes.BANK_ACCOUNT_TYPE);
            BankMasterDal bankservice = new BankMasterDal();
            List <BankMasterLookupDto> lstBankMasterLookupDto = bankservice.GetLookup(null);

            lstBankMasterLookupDto = lstBankMasterLookupDto.FindAll(l => !l.IsBankAlreadyConsumed);

            // var villages = _dbContext.vi
            // ViewBag.Clusters = (SelectList) clusters;

            if (Id > 0)
            {
                List <BankMasterDto> lstModel = _bankService.BanksGetByObjectId(Id);
                ViewBag.BankDetails = lstModel;
            }
            ViewBag.ExistedBanks = lstBankMasterLookupDto;
            ViewBag.accountType  = accountType;
            ViewBag.bankNames    = banks;
            ViewBag.branches     = branches;
            return(View());
        }