Exemplo n.º 1
0
        public HttpResponseMessage GetReport(HttpRequestMessage request, int reportId, int studentId)
        {
            var report = _studentApi.GetReportWithSubjects(reportId, studentId);

            var reportVm = (new StudentReportViewModel()).MapSingleReport(report);

            var response = request.CreateResponse(HttpStatusCode.OK, reportVm);

            return(response);
        }