Пример #1
0
 public async Task <IActionResult> GetDisabledCourses([FromQuery] string searchString = "",
                                                      [FromQuery] int skip            = 0, [FromQuery] int take = 10)
 {
     return(await this.Get(async() =>
     {
         var teacherId = _userService.Get_ProfesorId(User.Claims);
         return await _ctrlService.GetAll_CursosI(teacherId, searchString, skip, take);
     }));
 }
Пример #2
0
        public async Task <IActionResult> Inactive(string searchString = "",
                                                   int skip            = 0, int take = 10)
        {
            var profId = _usrService.Get_ProfesorId(User.Claims);
            var model  = await _ctrlService.GetAll_CursosI(profId, searchString,
                                                           skip, take);

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