Example #1
0
        public async Task <IActionResult> Dashboard()
        {
            CreateBreadCrumb(new[] { new { Name = "Home", ActionUrl = "#" },
                                     new { Name = "Dashboard", ActionUrl = "/Account/Dashboard" } });
            BaseViewModel VModel = null;
            //var TempVModel = new DashboardVM();
            //** get dashboard data from service later
            var CurrentUserInfo = GetLoginUserInfo();

            var TempVModel = await _ClassroomService.GetDashboardInfo(CurrentUserInfo).ConfigureAwait(false);

            //*****************************
            VModel = await GetViewModel(TempVModel);

            return(View(VModel));
        }