示例#1
0
        public HttpResponseMessage GetAllSubjects(HttpRequestMessage request)
        {
            var subjects = _studentApi.GetSubjects();

            var subjectVm = SubjectViewModel.MapMultipleSubjects(subjects);

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

            return(response);
        }