예제 #1
0
        public async Task <IActionResult> FindByNomeAsync(string q = null, int pagesize = 10)
        {
            var cursos = await _cursoRepository.FindByNomeAsync(q, pagesize);

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

            return(Ok(cursos));
        }