コード例 #1
0
 public async Task <IActionResult> GetCourses([FromQuery] string searchString = "",
                                              [FromQuery] int skip            = 0, [FromQuery] int take = 10) =>
 await this.Get(async() =>
 {
     var teacherId = _userService.Get_ProfesorId(User.Claims);
     return(await _ctrlService.GetAll_Cursos(teacherId, searchString, skip, take));
 });
コード例 #2
0
        public async Task <IActionResult> Index(string searchString = "",
                                                int skip            = 0, int take = 10)
        {
            var profId = _usrService.Get_ProfesorId(User.Claims);
            var model  = await _ctrlService.GetAll_Cursos(profId, searchString,
                                                          skip, take);

            this.GetAlerts();
            return(View(model));
        }