Exemplo n.º 1
0
        public ActionResult <StuItem> GetMax()
        {
            AthenaDataLayer data = new AthenaDataLayer();
            StuItem         max  = data.maxGPA();

            return(max);
        }
Exemplo n.º 2
0
        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);
        }