2018-09-16 19:33:56 +08:00
|
|
|
|
using Bootstrap.Client.Models;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using System.Diagnostics;
|
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)
|
|
|
|
|
{
|
|
|
|
|
return id == 404 ? View("NotFound") : View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
2016-11-21 20:05:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-09-16 19:33:56 +08:00
|
|
|
|
}
|