Ejemplo n.º 1
0
 public static string Capture( this ActionResult result, ControllerContext controllerContext )
 {
     using (var it = new ResponseCapture(controllerContext.RequestContext.HttpContext.Response))
     {
         result.ExecuteResult(controllerContext);
         return it.ToString();
     }
 }
Ejemplo n.º 2
0
 public static string Capture(this ActionResult result, ControllerContext controllerContext)
 {
     using (var it = new ResponseCapture(controllerContext.RequestContext.HttpContext.Response))
     {
         result.ExecuteResult(controllerContext);
         return(it.ToString());
     }
 }