public ActionResult <StuItem> GetMax() { AthenaDataLayer data = new AthenaDataLayer(); StuItem max = data.maxGPA(); return(max); }
public ActionResult <StuItem> GetById(string id, string name) { AthenaDataLayer data = new AthenaDataLayer(); StuItem particular_student = data.findId(id); if (particular_student == null) { return(NotFound()); } if (particular_student.stu_name != name) { return(NotFound()); } return(particular_student); }