public ActionResult Get() { Object result = StudentTable.getStudents(); if (result.GetType() == typeof(List <Student>)) { return(Ok(result)); } else { return(NotFound(result)); } }