aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2017-12-01 14:48:19 +0100
committermarcinzelent <zelent.marcin@gmail.com>2017-12-01 14:48:19 +0100
commitc8f0195ccc06575349c0e675c23276ac089bf9c7 (patch)
tree16a861c8605829bb50dbfd05091b9591f01259c1 /PollutometerWebApi/Controllers/HomeController.cs
parent918e61788858a9ce8fe4e8680d92752f9af8fc5a (diff)
Changed name of the project.
Diffstat (limited to 'PollutometerWebApi/Controllers/HomeController.cs')
-rw-r--r--PollutometerWebApi/Controllers/HomeController.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/PollutometerWebApi/Controllers/HomeController.cs b/PollutometerWebApi/Controllers/HomeController.cs
new file mode 100644
index 0000000..69e4846
--- /dev/null
+++ b/PollutometerWebApi/Controllers/HomeController.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Web.Mvc;
+
+namespace PollutometerWebApi.Controllers
+{
+ public class HomeController : Controller
+ {
+ public ActionResult Index()
+ {
+ var mvcName = typeof(Controller).Assembly.GetName();
+ var isMono = Type.GetType("Mono.Runtime") != null;
+
+ ViewData["Version"] = mvcName.Version.Major + "." + mvcName.Version.Minor;
+ ViewData["Runtime"] = isMono ? "Mono" : ".NET";
+
+ return View();
+ }
+ }
+}