cscg24-photoeditor

CSCG 2024 Challenge 'PhotoEditor'
git clone https://git.sinitax.com/sinitax/cscg24-photoeditor
Log | Files | Refs | sfeed.txt

HomeController.cs (732B)


      1using System.Diagnostics;
      2using Microsoft.AspNetCore.Mvc;
      3using PhotoEditor.Models;
      4
      5namespace PhotoEditor.Controllers;
      6
      7public class HomeController : Controller
      8{
      9    private readonly ILogger<HomeController> _logger;
     10
     11    public HomeController(ILogger<HomeController> logger)
     12    {
     13        _logger = logger;
     14    }
     15
     16    public IActionResult Index()
     17    {
     18        return View();
     19    }
     20
     21    public IActionResult Privacy()
     22    {
     23        return View();
     24    }
     25
     26    [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
     27    public IActionResult Error()
     28    {
     29        return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
     30    }
     31}