public IActionResult Index() { SorothalViewModel model = new SorothalViewModel { Lang = _lang.PerseLang("Admin/SorothalReportEN.json", "Admin/SorothalReportBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public IActionResult Index() { SearchViewModel model = new SearchViewModel { searchLn = _lang.PerseLang("LostFound/SearchEN.json", "LostFound/SearchBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public async Task <IActionResult> Index() { DocumentTypeViewModel model = new DocumentTypeViewModel { documentTypes = await lostAndFoundType.GetDocumentTypes(), fLang = _lang.PerseLang("MasterData/DocumentTypeEN.json", "MasterData/DocumentTypeBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public async Task <IActionResult> Index() { VehicleInformationViewModel model = new VehicleInformationViewModel { vehicleTypes = await lostAndFoundType.GetVehicleTypes(), fLang = _lang.PerseLang("MasterData/VehicaleInfoEN.json", "MasterData/VehicaleInfoBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public IActionResult Register(string returnUrl = null) { string userName = HttpContext.User.Identity.Name; //ViewBag.UserList = userInfoes.GetUserTypeList(); ViewData["ReturnUrl"] = returnUrl; var model = new RegisterViewModel { //userTypes = await userInfoes.GetUserTypeList(), //aspNetUsersViewModels = _db.AspNetUsersViewModels.FromSql("sp_GetAspNetUserslist"), //identityRoles = await userInfoes.GetAllRoles(), rLang = _langRegister.PerseLang("Auth/RegisterEN.json", "Auth/RegisterBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public IActionResult PublicRegister() { var model = new RegisterViewModel { rLang = _langRegister.PerseLang("Auth/RegisterEN.json", "Auth/RegisterBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public async Task <IActionResult> Index() { string userName = User.Identity.Name; var user = await _userManager.FindByNameAsync(userName); DashboardViewModel model = new DashboardViewModel { gDInformation = await lostAndFoundService.GetAllGDInformation(), gDType = await lostAndFoundType.GetGDTypes(), dashboardLn = _lang.PerseLang("Dashboard/DashboardEN.json", "Dashboard/DashboardBN.json", Request.Cookies["lang"]), }; return(View(model)); //SearchViewModel model = new SearchViewModel //{ // searchLn = _sLang.PerseLang("LostFound/SearchEN.json", "LostFound/SearchBN.json", Request.Cookies["lang"]), //}; //return View(model); }
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 <IActionResult> ProductType() { ProductTypeViewModel model = new ProductTypeViewModel { productTypes = await lostAndFoundType.GetProductType(), fLang = _pLang.PerseLang("MasterData/ProductTypeEN.json", "MasterData/ProductTypeBN.json", Request.Cookies["lang"]), }; return(View(model)); }
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)); }
public async Task <IActionResult> ColorInfo() { ColorViewModel model = new ColorViewModel { colors = await lostAndFoundType.GetColors(), fLang = _cLang.PerseLang("MasterData/ColorEN.json", "MasterData/ColorBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public async Task <IActionResult> AnimalInfo() { AnimalViewModel model = new AnimalViewModel { animals = await lostAndFoundType.GetAnimals(), fLang = _aLang.PerseLang("MasterData/AnimalEN.json", "MasterData/AnimalBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public async Task <IActionResult> GDTypeInfo() { GDTypeViewModel model = new GDTypeViewModel { gDTypes = await lostAndFoundType.GetGDTypes(), fLang = _gLang.PerseLang("MasterData/GDTypeEN.json", "MasterData/GDTypeBN.json", Request.Cookies["lang"]), }; return(View(model)); }
public async Task <IActionResult> OTPVarified() { var userName = User.Identity.Name; var user = await _userManager.FindByNameAsync(userName); OTPCodeVarificationViewModel model = new OTPCodeVarificationViewModel { otpCode = user.otpCode, oLang = _langOTPCode.PerseLang("Auth/OTPVarifiedEN.json", "Auth/OTPVarifiedBN.json", Request.Cookies["lang"]), }; return(View(model)); }