Ejemplo n.º 1
0
        public HttpResponseMessage GetAllSponsors(HttpRequestMessage request)
        {
            var sponsors = _studentApi.GetAllSponsors();

            var sponsorVm = SponsorViewModel.MultipleSponsorsMap(sponsors);

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

            return(response);
        }