Exemple #1
0
        public async Task <IActionResult> NationalIdentityType()
        {
            NationalIdentityTypeViewModel model = new NationalIdentityTypeViewModel
            {
                nationalIdentityTypes = await lostAndFoundType.GetNationalIdentityTypes(),
                fLang = _nLang.PerseLang("MasterData/IdentityTypeEN.json", "MasterData/IdentityTypeBN.json", Request.Cookies["lang"]),
            };

            return(View(model));
        }
Exemple #2
0
        public async Task <MDAddressInforamtionModel> GetAddressInformationMasterData()
        {
            MDAddressInforamtionModel model = new MDAddressInforamtionModel
            {
                nationalIdentityTypes = await lostAndFoundType.GetNationalIdentityTypes(),
                countries             = await addressService.GetAllContry(),
                divisions             = await addressService.GetAllDivision(),
                districts             = await addressService.GetAllDistrict(),
                thanas = await addressService.GetAllThana(),
            };

            return(model);
        }
        public async Task <IActionResult> RegisterStepOne(int id)
        {
            if (id == 1)
            {
                ViewBag.msg = "citizen";
            }
            else if (id == 2)
            {
                ViewBag.msg = "Foreigner";
            }
            else
            {
                return(RedirectToAction("PublicRegister"));
            }

            LostAndFoundMasterDataViewModel model = new LostAndFoundMasterDataViewModel
            {
                NationalIdentityTypes = await lostAndFoundType.GetNationalIdentityTypes()
            };

            return(View(model));
        }
        public async Task <IEnumerable <NationalIdentityType> > GetNationalIdentityTypes()
        {
            var nationalIdentityTypes = await lostAndFoundType.GetNationalIdentityTypes();

            return(nationalIdentityTypes);
        }