Ejemplo n.º 1
0
        public IActionResult GetStudentByIndexNumberSqlInjectionInVulnerable(string indexNumber)
        {
            var student = _studentDao.GetStudentByIndexNumberSqlInjectionInVulnerable(indexNumber);

            if (ValidationUtils.CheckIfStudentNotEmpty(student))
            {
                return(Ok(student));
            }

            return(NotFound($"Student with indexNumber = {indexNumber} not found"));
        }