Exemplo n.º 1
0
        //[TeacherAuthorization]
        public IHttpActionResult GetGrades([FromUri] int id, [FromUri] int id2)
        {
            List <Grade> g = graderepo.GetGradesBySectionsBySubjects(id, id2);

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