mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
ReSharper code cleanup
This commit is contained in:
parent
8cade435d1
commit
e896af5cd0
138 changed files with 2368 additions and 2218 deletions
|
@ -1,14 +1,14 @@
|
|||
using System;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Html;
|
||||
|
||||
namespace Helpers
|
||||
{
|
||||
public static class IsCurrentActionHelper
|
||||
{
|
||||
|
||||
private static bool IsCurrentController(HtmlHelper helper, string actionName, string controllerName)
|
||||
{
|
||||
var currentControllerName = (string)helper.ViewContext.RouteData.Values["controller"];
|
||||
var currentControllerName = (string) helper.ViewContext.RouteData.Values["controller"];
|
||||
|
||||
if (currentControllerName.Equals(controllerName, StringComparison.CurrentCultureIgnoreCase))
|
||||
return true;
|
||||
|
@ -16,7 +16,8 @@ namespace Helpers
|
|||
return false;
|
||||
}
|
||||
|
||||
public static string CurrentActionLink(this HtmlHelper helper, string text, string actionName, string controllerName)
|
||||
public static string CurrentActionLink(this HtmlHelper helper, string text, string actionName,
|
||||
string controllerName)
|
||||
{
|
||||
string result;
|
||||
|
||||
|
@ -30,7 +31,6 @@ namespace Helpers
|
|||
}
|
||||
|
||||
return result + helper.ActionLink(text, actionName, controllerName).ToHtmlString() + @"</li>";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue