[HttpGet] public ActionResult<List<Student>> GetStudents() { return CollegeRepository.Students; }
[HttpGet] public JsonResult GetStudents() { var json = new JsonResult(new { data = CollegeRepository.Students, message = "success" }); json.StatusCode = StatusCodes.Status200OK; return json; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)