Exemplo n.º 1
0
 public ActionResult Index(SimpleModel model)
 {
     Action<TextWriter> callback = writer =>
     {
         writer.Write(string.Format("Controller: {0}<br/>Action: {1}<br/><br/>", model.Controller, model.Action));
         writer.Write(string.Format("Foo: {0}<br/>Bar: {1}<br/>Baz: {2}", model.Foo, model.Bar, model.Baz));
     };
     return new RawContentResult(callback);
 }
Exemplo n.º 2
0
 public ActionResult Index(SimpleModel model)
 {
     string content = string.Format("Controller: {0}<br/>Action:{1}", model.Controller, model.Action);
     return new RawContentResult(content);
 }
Exemplo n.º 3
0
        public ActionResult Index(SimpleModel model)
        {
            string content = string.Format("Controller: {0}<br/>Action:{1}", model.Controller, model.Action);

            return(new RawContentResult(content));
        }