public async Task <IActionResult> Courses() { var userId = userManger.GetUserId(User); var courses = await trainers.CoursesAsync(userId); return(View(courses)); }
public async Task <IActionResult> Courses() { var userId = _userManager.GetUserId(this.User); var courses = await _trainerService.CoursesAsync(userId); return(View(courses)); }