public class MyActionResult : ActionResult
{
public override void ExecuteResult(ControllerContext context)
{
context.HttpContext.Response.Write("It is MyActionResult");
}
}
public class HomeController : Controller
{
//
// GET: /Home/
public ActionResult Index(string data)
{
return new MyActionResult();
}
}
{
public override void ExecuteResult(ControllerContext context)
{
context.HttpContext.Response.Write("It is MyActionResult");
}
}
public class HomeController : Controller
{
//
// GET: /Home/
public ActionResult Index(string data)
{
return new MyActionResult();
}
}
as you can see