PlotDirector/PlotLine/Controllers/HomeController.cs

25 lines
694 B
C#

using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;
using PlotLine.Models;
using PlotLine.Services;
using System.Diagnostics;
namespace PlotLine.Controllers
{
[AllowAnonymous]
public class HomeController : Controller
{
[HttpGet("/", Name = PublicRouteNames.Home)]
public IActionResult Index()
{
return RedirectToAction("Index", "Projects");
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
}
}