public async Task <IActionResult> OccupationInfo() { OccupationViewModel model = new OccupationViewModel { occupations = await lostAndFoundType.GetOccupation(), fLang = _oLang.PerseLang("MasterData/DocumentTypeEN.json", "MasterData/DocumentTypeBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public async Task <MDPersonalInformationModel> GetPersonalInformationMasterData() { MDPersonalInformationModel model = new MDPersonalInformationModel { genders = await lostAndFoundType.GetAllGender(), religions = await extendedMasterDataService.GetAllReligion(), religionCusts = await extendedMasterDataService.GetAllReligionCust(), relationTypes = await extendedMasterDataService.GetAllRelationType(), occupations = await lostAndFoundType.GetOccupation(), maritalStatuses = await extendedMasterDataService.GetAllMaritalStatus(), habits = await extendedMasterDataService.GetAllHabit(), speeches = await extendedMasterDataService.GetAllSpeech(), numberTypes = await extendedMasterDataService.GetAllNumberType() }; return(model); }
public async Task <IEnumerable <Occupation> > GetOccupationInfo() { var occupations = await lostAndFoundType.GetOccupation(); return(occupations); }