2018-09-16 19:33:56 +08:00
|
|
|
|
using Bootstrap.Client.Models;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2016-11-21 20:05:29 +08:00
|
|
|
|
|
|
|
|
|
namespace Bootstrap.Client.Controllers
|
|
|
|
|
{
|
2018-09-16 19:33:56 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2016-11-21 20:05:29 +08:00
|
|
|
|
public class HomeController : Controller
|
|
|
|
|
{
|
2018-09-16 19:33:56 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public IActionResult Index()
|
2016-11-21 20:05:29 +08:00
|
|
|
|
{
|
2018-09-16 19:33:56 +08:00
|
|
|
|
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();
|
2016-11-21 20:05:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-09-16 19:33:56 +08:00
|
|
|
|
}
|