diff --git a/PlatformSamples/AspNetCoreMvc/Controllers/HomeController.cs b/PlatformSamples/AspNetCoreMvc/Controllers/HomeController.cs index 11687ab..d8433eb 100644 --- a/PlatformSamples/AspNetCoreMvc/Controllers/HomeController.cs +++ b/PlatformSamples/AspNetCoreMvc/Controllers/HomeController.cs @@ -18,33 +18,16 @@ namespace AspNetCoreMvc.Controllers return View (); } - public IActionResult Clicker () - { - var count = 0; - var head = new Heading { Text = "Click away!" }; - var label = new Label { Text = "0" }; - var btn = new Button { Text = "Increase" }; - btn.Clicked += (sender, e) => { - count++; - label.Text = count.ToString (); - }; - var div = new Div (); - div.AppendChild (head); - div.AppendChild (label); - div.AppendChild (btn); - return new ElementResult (div); - } - public IActionResult About () { - ViewData["Message"] = "Your application description page."; + ViewData["Message"] = "Ooui is a mini web framework to make programming interactive UIs easy."; return View (); } public IActionResult Contact () { - ViewData["Message"] = "Your contact page."; + ViewData["Message"] = "Find us on github."; return View (); } diff --git a/PlatformSamples/AspNetCoreMvc/Controllers/SamplesController.cs b/PlatformSamples/AspNetCoreMvc/Controllers/SamplesController.cs index 3503207..fc46088 100644 --- a/PlatformSamples/AspNetCoreMvc/Controllers/SamplesController.cs +++ b/PlatformSamples/AspNetCoreMvc/Controllers/SamplesController.cs @@ -35,7 +35,11 @@ namespace AspNetCoreMvc.Controllers var sampleType = typeof (Samples.ISample); var asm = sampleType.Assembly; var sampleTypes = asm.GetTypes ().Where (x => x.Name.EndsWith ("Sample", StringComparison.Ordinal) && x != sampleType); - var samples = from t in sampleTypes let s = Activator.CreateInstance (t) as Samples.ISample where s != null select s; + var samples = from t in sampleTypes + let s = Activator.CreateInstance (t) as Samples.ISample + where s != null + orderby s.Title + select s; return samples.ToList (); }), true); diff --git a/PlatformSamples/AspNetCoreMvc/Views/Home/About.cshtml b/PlatformSamples/AspNetCoreMvc/Views/Home/About.cshtml index a443e8b..c9f4798 100644 --- a/PlatformSamples/AspNetCoreMvc/Views/Home/About.cshtml +++ b/PlatformSamples/AspNetCoreMvc/Views/Home/About.cshtml @@ -4,4 +4,4 @@
Use this area to provide additional information.
+Find out more on github
diff --git a/PlatformSamples/AspNetCoreMvc/Views/Home/Contact.cshtml b/PlatformSamples/AspNetCoreMvc/Views/Home/Contact.cshtml index 9d10bf9..d1ef9c9 100644 --- a/PlatformSamples/AspNetCoreMvc/Views/Home/Contact.cshtml +++ b/PlatformSamples/AspNetCoreMvc/Views/Home/Contact.cshtml @@ -4,14 +4,3 @@