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

            if (studentWithStudiesResponse != null)
            {
                return(Ok(studentWithStudiesResponse));
            }

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