public HttpResponseMessage PerfilesReporte(HttpRequestMessage request) { HttpResponseMessage response = null; if (!ModelState.IsValid) { response = request.CreateResponse(HttpStatusCode.BadRequest); } else { Stream pdf = perfilService.PerfilesReporte(); response = ResponsePDF(request, pdf, "Reporte de Perfiles"); } return(response); }