CompareCloudware.Web/FluentSecurity/Extensions.cs
///<summary>
/// Gets the action name for the specified action expression
///</summary>
Gets the action name for the specified action expression
Gets the action name for the specified action expression
public static string GetActionName(this LambdaExpression actionExpression)
        {
            var expression = (MethodCallExpression)(actionExpression.Body is UnaryExpression ? ((UnaryExpression)actionExpression.Body).Operand : actionExpression.Body);
            return expression.Method.Name;
        }
public static string GetActionName ( this LambdaExpression actionExpression ) { var expression = ( MethodCallExpression ) ( actionExpression . Body is UnaryExpression ? ( ( UnaryExpression ) actionExpression . Body ) . Operand : actionExpression . Body ) ; return expression . Method . Name ; }
Gets the action name for the specified action expression
Gets the action name for the specified action expression
LambdaExpression
this