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!!!")); }
public IActionResult GetStudentById(string id) { return(Ok(_dbService.GetStudent(id))); }
public IActionResult GetStudents(string orderBy) { return(service.GetStudent(orderBy)); }