Example #1
0
        public IHttpActionResult GetAvgGradeByStudentAndSubject(string studentId, int subjectId)
        {
            var avg = service.AverageGradeByStudentIdAndSubjectId(studentId, subjectId);

            logger.Info("Got average grade of student id {0} for subject id {2}", studentId, subjectId);
            return(Ok(avg));
        }