重构代码:精简代码到inline
This commit is contained in:
parent
ff88e34e22
commit
403cce5c1f
|
@ -14,8 +14,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Index()
|
public ActionResult Index()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Index");
|
return View(new NavigatorBarModel("~/Admin/Index"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -23,8 +22,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Users()
|
public ActionResult Users()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Users");
|
return View(new NavigatorBarModel("~/Admin/Users"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -32,8 +30,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Groups()
|
public ActionResult Groups()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Groups");
|
return View(new NavigatorBarModel("~/Admin/Groups"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -41,8 +38,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Dicts()
|
public ActionResult Dicts()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Dicts");
|
return View(new NavigatorBarModel("~/Admin/Dicts"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -50,8 +46,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Roles()
|
public ActionResult Roles()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Roles");
|
return View(new NavigatorBarModel("~/Admin/Roles"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -59,8 +54,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Menus()
|
public ActionResult Menus()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Menus");
|
return View(new NavigatorBarModel("~/Admin/Menus"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -68,8 +62,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Logs()
|
public ActionResult Logs()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Logs");
|
return View(new NavigatorBarModel("~/Admin/Logs"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -77,8 +70,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult FAIcon()
|
public ActionResult FAIcon()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/FAIcon");
|
return View(new NavigatorBarModel("~/Admin/FAIcon"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -96,8 +88,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Settings()
|
public ActionResult Settings()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Settings");
|
return View(new NavigatorBarModel("~/Admin/Settings"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -106,8 +97,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Notifications()
|
public ActionResult Notifications()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Notifications");
|
return View(new NavigatorBarModel("~/Admin/Notifications"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -116,8 +106,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Profiles()
|
public ActionResult Profiles()
|
||||||
{
|
{
|
||||||
var v = new ProfilesModel("~/Admin/Profiles");
|
return View(new ProfilesModel("~/Admin/Profiles"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -125,8 +114,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Exceptions()
|
public ActionResult Exceptions()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Exceptions");
|
return View(new NavigatorBarModel("~/Admin/Exceptions"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -134,8 +122,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Messages()
|
public ActionResult Messages()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Messages");
|
return View(new NavigatorBarModel("~/Admin/Messages"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -143,8 +130,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Tasks()
|
public ActionResult Tasks()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Tasks");
|
return View(new NavigatorBarModel("~/Admin/Tasks"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -152,8 +138,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Mobile()
|
public ActionResult Mobile()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Mobile");
|
return View(new NavigatorBarModel("~/Admin/Mobile"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -161,8 +146,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ActionResult Api()
|
public ActionResult Api()
|
||||||
{
|
{
|
||||||
var v = new NavigatorBarModel("~/Admin/Api");
|
return View(new NavigatorBarModel("~/Admin/Api"));
|
||||||
return View(v);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue