Ejemplo n.º 1
0
 protected override object CreateModel(ControllerContext controllerContext, ModelBindingContext bindingContext, Type modelType)
 {
     return(new AThing()
     {
         SomeRandomValue = _bar.IPityTheFoo()
     });
 }
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC! " + _bar.IPityTheFoo();

            return(View());
        }
Ejemplo n.º 3
0
        public void OnActionExecuted(ActionExecutedContext filterContext)
        {
            string message = String.Format("<!-- Your mom is so fat, she makes viewstate look lightweight. {0} -->", _bar.IPityTheFoo());

            filterContext.HttpContext.Response.Write(message);
        }