using Bootstrap.Admin.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using System; namespace Bootstrap.Admin.Controllers { /// /// /// public class AdminController : Controller { /// /// /// /// public ActionResult Index() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Users() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Groups() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Dicts() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Roles() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Menus() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Logs() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Traces() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Logins() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult FAIcon() => View(new NavigatorBarModel(this)); /// /// /// /// [AllowAnonymous] [ResponseCache(Duration = 600)] public PartialViewResult IconView() => PartialView("IconView"); /// /// /// /// public ActionResult Settings() => View(new ThemeModel(this)); /// /// /// /// public ActionResult Notifications() => View(new NavigatorBarModel(this)); /// /// /// /// /// public ActionResult Profiles([FromServices]IHostingEnvironment host) => View(new ProfilesModel(this, host)); /// /// /// /// public ActionResult Exceptions() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Messages() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Tasks() => View(new NavigatorBarModel(this)); /// /// /// /// public ActionResult Mobile() => View(new NavigatorBarModel(this)); /// /// 在线用户 /// /// public ActionResult Online() => View(new NavigatorBarModel(this)); /// /// 用于测试ExceptionFilter /// /// public ActionResult Error() => throw new Exception("Customer Excetion UnitTest"); } }