public IHttpActionResult GetGrades([FromUri] string id, [FromUri] int id2)
        {
            Student s = studrepo.GetInfo(id);
            Grade   g = grepo.GetGradeBySectionsBySubjects(s.sectionid, id, id2);

            return(Ok(g));
        }
예제 #2
0
        //[TeacherAuthorization]
        public IHttpActionResult GetGrade([FromUri] int id, [FromUri] int id2, [FromUri] int id3)
        {
            Grade g = graderepo.GetGradeBySectionsBySubjects(id, id2, id3);

            if (g == null)
            {
                return(StatusCode(HttpStatusCode.NoContent));
            }
            return(Ok(g));
        }