예제 #1
0
 HDoc PostExampleFormView(ZooModel model)
 {
     return
         (MasterPage("Hey", new[]
     {
         H.p("You posted the following values: "), H.p(model.Giraffe), H.p(model.Elephant),
         H.A("/", "Back Home")
     }));
 }
예제 #2
0
 HDoc ExampleForm(ZooModel model)
 {
     return
         MasterPage ("Form Example",
             new[]
             {
                 H.p("Form entry: "),
                 StandardForm(() => PostExampleForm(null), null, new[]
                     {
                         new TextInput (() => model.Giraffe),
                         new TextInput (() => model.Elephant)
                     }
                 )
             }
         );
 }
예제 #3
0
 HDoc ExampleForm(ZooModel model)
 {
     return
         (MasterPage("Form Example",
                     new[]
     {
         H.p("Form entry: "),
         StandardForm(() => PostExampleForm(null), null, new[]
         {
             new TextInput(() => model.Giraffe),
             new TextInput(() => model.Elephant)
         }
                      )
     }
                     ));
 }
예제 #4
0
 HDoc PostExampleFormView(ZooModel model)
 {
     return
         MasterPage ("Hey", new[]
         {
             H.p("You posted the following values: "), H.p(model.Giraffe), H.p(model.Elephant),
             H.A("/", "Back Home")
         });
 }
예제 #5
0
 public ActionResult PostExampleForm(ZooModel model)
 {
     return Content ("" + PostExampleFormView (model));
 }
예제 #6
0
 public ActionResult PostExampleForm(ZooModel model)
 {
     return(Content("" + PostExampleFormView(model)));
 }