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)); });
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)); }