public async Task <IActionResult> Courses()
        {
            var userId  = userManger.GetUserId(User);
            var courses = await trainers.CoursesAsync(userId);

            return(View(courses));
        }
Пример #2
0
        public async Task <IActionResult> Courses()
        {
            var userId  = _userManager.GetUserId(this.User);
            var courses = await _trainerService.CoursesAsync(userId);

            return(View(courses));
        }