public IActionResult GetStudents(string index)
        {
            var sql    = new SqlServerDbService();
            var result = sql.GetStudent(index);

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

            return(NotFound("Index number does not exists!!!"));
        }
Example #2
0
 public IActionResult GetStudentById(string id)
 {
     return(Ok(_dbService.GetStudent(id)));
 }
Example #3
0
 public IActionResult GetStudents(string orderBy)
 {
     return(service.GetStudent(orderBy));
 }