예제 #1
0
        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);
        }
예제 #2
0
        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 <IEnumerable <GDType> > GetGDTypes()
        {
            var gDTypes = await lostAndFoundType.GetGDTypes();

            return(gDTypes);
        }