aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Web/Controllers
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-06 18:29:43 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-06 18:29:43 +0300
commit53921ccea49bd8a7840d5bbc71c57c8691ed92bf (patch)
treed5a867425bd4f97fc86d6d51119bd4da2a0f3c1f /ExamTemplate/Web/Controllers
parent9000f940c89e1cfa35f959f2aefd7b748eddc1ce (diff)
downloadit-kariera-exam-template-53921ccea49bd8a7840d5bbc71c57c8691ed92bf.tar
it-kariera-exam-template-53921ccea49bd8a7840d5bbc71c57c8691ed92bf.tar.gz
it-kariera-exam-template-53921ccea49bd8a7840d5bbc71c57c8691ed92bf.zip
Removed unnecessary usings, space identation got updated to tab identation and added authentication in Startup.cs
Diffstat (limited to 'ExamTemplate/Web/Controllers')
-rw-r--r--ExamTemplate/Web/Controllers/HomeController.cs48
1 files changed, 22 insertions, 26 deletions
diff --git a/ExamTemplate/Web/Controllers/HomeController.cs b/ExamTemplate/Web/Controllers/HomeController.cs
index 3c5b6ec..9f96a95 100644
--- a/ExamTemplate/Web/Controllers/HomeController.cs
+++ b/ExamTemplate/Web/Controllers/HomeController.cs
@@ -1,37 +1,33 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Linq;
-using System.Threading.Tasks;
+using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Web.Models;
namespace Web.Controllers
{
- public class HomeController : Controller
- {
- private readonly ILogger<HomeController> _logger;
+ public class HomeController : Controller
+ {
+ private readonly ILogger<HomeController> _logger;
- public HomeController(ILogger<HomeController> logger)
- {
- _logger = logger;
- }
+ public HomeController(ILogger<HomeController> logger)
+ {
+ _logger = logger;
+ }
- public IActionResult Index()
- {
- return View();
- }
+ public IActionResult Index()
+ {
+ return View();
+ }
- public IActionResult Privacy()
- {
- 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 });
- }
- }
+ [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
+ public IActionResult Error()
+ {
+ return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
+ }
+ }
}