コード例 #1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error404.cshtml"

            ViewBag.Title = "404";
            Layout        = "_ErrorLayout";

#line default
#line hidden
            BeginContext(61, 110, true);
            WriteLiteral("\n<div class=\"error-box\">\n    <div class=\"error-body text-center\">\n        <h1 class=\"error-title text-danger\">");
            EndContext();
            BeginContext(172, 13, false);
#line 8 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error404.cshtml"
            Write(ViewBag.Title);

#line default
#line hidden
            EndContext();
            BeginContext(185, 41, true);
            WriteLiteral("</h1>\n        <h3 class=\"text-uppercase\">");
            EndContext();
            BeginContext(227, 49, false);
#line 9 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error404.cshtml"
            Write(ErrorLocalizer.GetLocalizedString("lbl_404Title"));

#line default
#line hidden
            EndContext();
            BeginContext(276, 50, true);
            WriteLiteral("</h3>\n        <p class=\"text-muted m-t-30 m-b-30\">");
            EndContext();
            BeginContext(327, 50, false);
#line 10 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error404.cshtml"
            Write(ErrorLocalizer.GetLocalizedString("lbl_404Detail"));

#line default
#line hidden
            EndContext();
            BeginContext(377, 116, true);
            WriteLiteral("</p>\n        <a href=\"javascript:history.go(-1)\" class=\"btn btn-danger btn-rounded waves-effect waves-light m-b-40\">");
            EndContext();
            BeginContext(494, 40, false);
#line 11 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error404.cshtml"
            Write(Localizer.GetLocalizedString("btn_Back"));

#line default
#line hidden
            EndContext();
            BeginContext(534, 18, true);
            WriteLiteral("</a> </div>\n</div>");
            EndContext();
        }
コード例 #2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error401.cshtml"

            ViewBag.Title = "401";
            Layout        = "_ErrorLayout";

#line default
#line hidden
            BeginContext(61, 110, true);
            WriteLiteral("\n<div class=\"error-box\">\n    <div class=\"error-body text-center\">\n        <h1 class=\"error-title text-danger\">");
            EndContext();
            BeginContext(172, 13, false);
#line 8 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error401.cshtml"
            Write(ViewBag.Title);

#line default
#line hidden
            EndContext();
            BeginContext(185, 41, true);
            WriteLiteral("</h1>\n        <h3 class=\"text-uppercase\">");
            EndContext();
            BeginContext(227, 49, false);
#line 9 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error401.cshtml"
            Write(ErrorLocalizer.GetLocalizedString("lbl_401Title"));

#line default
#line hidden
            EndContext();
            BeginContext(276, 50, true);
            WriteLiteral("</h3>\n        <p class=\"text-muted m-t-30 m-b-30\">");
            EndContext();
            BeginContext(327, 50, false);
#line 10 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error401.cshtml"
            Write(ErrorLocalizer.GetLocalizedString("lbl_401Detail"));

#line default
#line hidden
            EndContext();
            BeginContext(377, 134, true);
            WriteLiteral("</p>\n        <button class=\"btn btn-danger btn-rounded waves-effect waves-light m-b-40\" onclick=\"window.history.back();\">\n            ");
            EndContext();
            BeginContext(512, 40, false);
#line 12 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error401.cshtml"
            Write(Localizer.GetLocalizedString("btn_Back"));

#line default
#line hidden
            EndContext();
            BeginContext(552, 27, true);
            WriteLiteral("\n        </button>\n        ");
            EndContext();
            BeginContext(579, 227, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0e656c48ae6bfb1aa55133b19bad1cf1983aedf86654", async() => {
                BeginContext(738, 13, true);
                WriteLiteral("\n            ");
                EndContext();
                BeginContext(752, 41, false);
#line 15 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error401.cshtml"
                Write(Localizer.GetLocalizedString("btn_Login"));

#line default
#line hidden
                EndContext();
                BeginContext(793, 9, true);
                WriteLiteral("\n        ");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-requestPath", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
            }
            BeginWriteTagHelperAttribute();
#line 14 "/home/huanhv/RiderProjects/3S-Intersoft/LoggingCodefirst/Views/Error/Error401.cshtml"
            WriteLiteral(ViewBag.RequestPath);

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["requestPath"] = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-requestPath", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["requestPath"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(806, 19, true);
            WriteLiteral(" \n    </div>\n</div>");
            EndContext();
        }