From 403cce5c1ffd4ab2bf0a845364250b4e966fc480 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 30 Mar 2017 14:40:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81=EF=BC=9A?= =?UTF-8?q?=E7=B2=BE=E7=AE=80=E4=BB=A3=E7=A0=81=E5=88=B0inline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/AdminController.cs | 48 +++++++------------ 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/Bootstrap.Admin/Controllers/AdminController.cs b/Bootstrap.Admin/Controllers/AdminController.cs index e4569670..44c0697b 100644 --- a/Bootstrap.Admin/Controllers/AdminController.cs +++ b/Bootstrap.Admin/Controllers/AdminController.cs @@ -14,8 +14,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Index() { - var v = new NavigatorBarModel("~/Admin/Index"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Index")); } /// /// @@ -23,8 +22,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Users() { - var v = new NavigatorBarModel("~/Admin/Users"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Users")); } /// /// @@ -32,8 +30,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Groups() { - var v = new NavigatorBarModel("~/Admin/Groups"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Groups")); } /// /// @@ -41,8 +38,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Dicts() { - var v = new NavigatorBarModel("~/Admin/Dicts"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Dicts")); } /// /// @@ -50,8 +46,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Roles() { - var v = new NavigatorBarModel("~/Admin/Roles"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Roles")); } /// /// @@ -59,8 +54,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Menus() { - var v = new NavigatorBarModel("~/Admin/Menus"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Menus")); } /// /// @@ -68,8 +62,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Logs() { - var v = new NavigatorBarModel("~/Admin/Logs"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Logs")); } /// /// @@ -77,8 +70,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult FAIcon() { - var v = new NavigatorBarModel("~/Admin/FAIcon"); - return View(v); + return View(new NavigatorBarModel("~/Admin/FAIcon")); } /// /// @@ -96,8 +88,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Settings() { - var v = new NavigatorBarModel("~/Admin/Settings"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Settings")); } /// @@ -106,8 +97,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Notifications() { - var v = new NavigatorBarModel("~/Admin/Notifications"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Notifications")); } /// @@ -116,8 +106,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Profiles() { - var v = new ProfilesModel("~/Admin/Profiles"); - return View(v); + return View(new ProfilesModel("~/Admin/Profiles")); } /// /// @@ -125,8 +114,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Exceptions() { - var v = new NavigatorBarModel("~/Admin/Exceptions"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Exceptions")); } /// /// @@ -134,8 +122,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Messages() { - var v = new NavigatorBarModel("~/Admin/Messages"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Messages")); } /// /// @@ -143,8 +130,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Tasks() { - var v = new NavigatorBarModel("~/Admin/Tasks"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Tasks")); } /// /// @@ -152,8 +138,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Mobile() { - var v = new NavigatorBarModel("~/Admin/Mobile"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Mobile")); } /// /// @@ -161,8 +146,7 @@ namespace Bootstrap.Admin.Controllers /// public ActionResult Api() { - var v = new NavigatorBarModel("~/Admin/Api"); - return View(v); + return View(new NavigatorBarModel("~/Admin/Api")); } } }