Пример #1
0
        public async Task <IActionResult> FindAsync(string q = null, int page = 1, int pagesize = 50)
        {
            var cursos = await _cursoRepository.FindAsync(q, page, pagesize);

            if (cursos == null)
            {
                return(NotFound());
            }

            return(Ok(cursos));
        }