public async Task <IActionResult> Index() { var user = await _userService.GetCurrentUserAsync(); return(View(new IndexViewModel() { Contents = (await GetContentChecksOfUser(user)), TimeStrips = (await _contentsService.GetTimeStripsAsync()).OrderBy(ts => ts.StartTime).ToList(), UserName = user.FriendlyName, Priorities = await _studentService.GetUserPrioritiesAsync(await _userService.GetCurrentUserAsync()) })); }
public async Task <IActionResult> Index() { return(View(await _contentsService.GetTimeStripsAsync())); }