App.Core.Controllers.HttpErrorsController.GetActionName C# (CSharp) Method

GetActionName() protected method

protected GetActionName ( int statusCode ) : string
statusCode int
return string
        protected override string GetActionName(int statusCode)
        {
            var expression = statusCodeActionLookup[statusCode];
            var body = (MethodCallExpression)expression.Body;

            return body.Method.Name;
        }