aboutsummaryrefslogtreecommitdiff
path: root/Web/Controllers/HomeController.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-07 22:37:08 +0200
committertranstrike <transtrike@gmail.com>2020-12-07 22:37:08 +0200
commitc5dc3763babe083c88dbc927f996fb1bdda80359 (patch)
tree814677cfb2c822d2e021a8aef66cee4fba924507 /Web/Controllers/HomeController.cs
parent4e6ef3968021b7a1059b5abda034db8eabb50907 (diff)
downloadDevHive-c5dc3763babe083c88dbc927f996fb1bdda80359.tar
DevHive-c5dc3763babe083c88dbc927f996fb1bdda80359.tar.gz
DevHive-c5dc3763babe083c88dbc927f996fb1bdda80359.zip
Base line projects created
Diffstat (limited to 'Web/Controllers/HomeController.cs')
-rw-r--r--Web/Controllers/HomeController.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/Web/Controllers/HomeController.cs b/Web/Controllers/HomeController.cs
new file mode 100644
index 0000000..3c5b6ec
--- /dev/null
+++ b/Web/Controllers/HomeController.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.Extensions.Logging;
+using Web.Models;
+
+namespace Web.Controllers
+{
+ public class HomeController : Controller
+ {
+ private readonly ILogger<HomeController> _logger;
+
+ public HomeController(ILogger<HomeController> logger)
+ {
+ _logger = logger;
+ }
+
+ public IActionResult Index()
+ {
+ return View();
+ }
+
+ public IActionResult Privacy()
+ {
+ return View();
+ }
+
+ [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
+ public IActionResult Error()
+ {
+ return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
+ }
+ }
+}