diff options
| author | Louis Burda <quent.burda@gmail.com> | 2024-04-19 00:55:07 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2024-04-19 00:55:07 +0200 |
| commit | ebb26ae709570a84004c27f34e9307c33ac6b000 (patch) | |
| tree | ba83f56ec65986cab387c97b771cd0a26e566c60 /solve/PhotoEditor/Controllers/HomeController.cs | |
| parent | 84e77e74c8d69b33a25938a46700b67a3e835c88 (diff) | |
| download | cscg24-photoeditor-ebb26ae709570a84004c27f34e9307c33ac6b000.tar.gz cscg24-photoeditor-ebb26ae709570a84004c27f34e9307c33ac6b000.zip | |
Diffstat (limited to 'solve/PhotoEditor/Controllers/HomeController.cs')
| -rw-r--r-- | solve/PhotoEditor/Controllers/HomeController.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/solve/PhotoEditor/Controllers/HomeController.cs b/solve/PhotoEditor/Controllers/HomeController.cs new file mode 100644 index 0000000..bef81f9 --- /dev/null +++ b/solve/PhotoEditor/Controllers/HomeController.cs @@ -0,0 +1,31 @@ +using System.Diagnostics;
+using Microsoft.AspNetCore.Mvc;
+using PhotoEditor.Models;
+
+namespace PhotoEditor.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 });
+ }
+}
|
