BootstrapAdmin11/Bootstrap.Client/Controllers/HomeController.cs

32 lines
816 B
C#
Raw Normal View History

using Bootstrap.Client.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Bootstrap.Client.Controllers
{
/// <summary>
///
/// </summary>
public class HomeController : Controller
{
/// <summary>
///
/// </summary>
/// <returns></returns>
public IActionResult Index()
{
return View(new NavigatorBarModel(this));
}
/// <summary>
///
/// </summary>
/// <returns></returns>
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
[AllowAnonymous]
public IActionResult Error(int id)
{
2018-09-29 12:29:41 +08:00
return id == 404 ? View("NotFound") : View();
}
}
}