コード例 #1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\Privacy.cshtml"

            ViewData["Title"] = "Privacy Policy";

#line default
#line hidden
            BeginContext(50, 27, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("h2", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cf01a08f69964b35aa473df5eb1e36ac", async() => {
                BeginContext(55, 17, false);
#line 4 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\Privacy.cshtml"
                Write(ViewData["Title"]);

#line default
#line hidden
                EndContext();
            }
                                                                        );
            __ChuskaAsp_TagHelpers_HelloTagHelper = CreateTagHelper <global::ChuskaAsp.TagHelpers.HelloTagHelper>();
            __tagHelperExecutionContext.Add(__ChuskaAsp_TagHelpers_HelloTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(77, 64, true);
            WriteLiteral("\r\n\r\n<p>Use this page to detail your site\'s privacy policy.</p>\r\n");
            EndContext();
        }
コード例 #2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\Contact.cshtml"

            ViewData["Title"] = "Contact";

#line default
#line hidden
            BeginContext(43, 27, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("h2", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "734be25295284335a0141f27bbb98ceb", async() => {
                BeginContext(48, 17, false);
#line 4 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\Contact.cshtml"
                Write(ViewData["Title"]);

#line default
#line hidden
                EndContext();
            }
                                                                        );
            __ChuskaAsp_TagHelpers_HelloTagHelper = CreateTagHelper <global::ChuskaAsp.TagHelpers.HelloTagHelper>();
            __tagHelperExecutionContext.Add(__ChuskaAsp_TagHelpers_HelloTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(70, 6, true);
            WriteLiteral("\r\n<h3>");
            EndContext();
            BeginContext(77, 19, false);
#line 5 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\Contact.cshtml"
            Write(ViewData["Message"]);

#line default
#line hidden
            EndContext();
            BeginContext(96, 369, true);
            WriteLiteral(@"</h3>

<address>
    One Microsoft Way<br />
    Redmond, WA 98052-6399<br />
    <abbr title=""Phone"">P:</abbr>
    425.555.0100
</address>

<address>
    <strong>Support:</strong> <a href=""mailto:[email protected]"">[email protected]</a><br />
    <strong>Marketing:</strong> <a href=""mailto:[email protected]"">[email protected]</a>
</address>
");
            EndContext();
        }
コード例 #3
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\About.cshtml"

            ViewData["Title"] = "About";

#line default
#line hidden
            BeginContext(41, 27, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("h2", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "602866922dfa4d409444c404ad900595", async() => {
                BeginContext(46, 17, false);
#line 4 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\About.cshtml"
                Write(ViewData["Title"]);

#line default
#line hidden
                EndContext();
            }
                                                                        );
            __ChuskaAsp_TagHelpers_HelloTagHelper = CreateTagHelper <global::ChuskaAsp.TagHelpers.HelloTagHelper>();
            __tagHelperExecutionContext.Add(__ChuskaAsp_TagHelpers_HelloTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(68, 6, true);
            WriteLiteral("\r\n<h3>");
            EndContext();
            BeginContext(75, 19, false);
#line 5 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\About.cshtml"
            Write(ViewData["Message"]);

#line default
#line hidden
            EndContext();
            BeginContext(94, 66, true);
            WriteLiteral("</h3>\r\n\r\n<p>Use this area to provide additional information.</p>\r\n");
            EndContext();
        }
コード例 #4
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Shared\Error.cshtml"

            ViewData["Title"] = "Error";

#line default
#line hidden
            BeginContext(64, 39, true);
            WriteLiteral("\r\n<h1 class=\"text-danger\">Error.</h1>\r\n");
            EndContext();
            BeginContext(103, 77, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("h2", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ab4dc4ceda24483b837847a428958a49", async() => {
                BeginContext(127, 48, true);
                WriteLiteral("An error occurred while processing your request.");
                EndContext();
            }
                                                                        );
            __ChuskaAsp_TagHelpers_HelloTagHelper = CreateTagHelper <global::ChuskaAsp.TagHelpers.HelloTagHelper>();
            __tagHelperExecutionContext.Add(__ChuskaAsp_TagHelpers_HelloTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(180, 4, true);
            WriteLiteral("\r\n\r\n");
            EndContext();
#line 9 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Shared\Error.cshtml"
            if (Model.ShowRequestId)
            {
#line default
#line hidden
                BeginContext(214, 52, true);
                WriteLiteral("    <p>\r\n        <strong>Request ID:</strong> <code>");
                EndContext();
                BeginContext(267, 15, false);
#line 12 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Shared\Error.cshtml"
                Write(Model.RequestId);

#line default
#line hidden
                EndContext();
                BeginContext(282, 19, true);
                WriteLiteral("</code>\r\n    </p>\r\n");
                EndContext();
#line 14 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Shared\Error.cshtml"
            }

#line default
#line hidden
            BeginContext(304, 562, true);
            WriteLiteral(@"
<h3>Development Mode</h3>
<p>
    Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
</p>
<p>
    <strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application.
</p>
");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\IndexUser.cshtml"

            ViewData["Title"] = "UserIndex";

#line default
#line hidden
            BeginContext(45, 49, true);
            WriteLiteral("\r\n<div class=\"container-fluid text-center\">\r\n    ");
            EndContext();
            BeginContext(94, 46, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("h2", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dd1bc3804e2b49748c6ad79ddafd805c", async() => {
            }
                                                                        );
            __ChuskaAsp_TagHelpers_HelloTagHelper = CreateTagHelper <global::ChuskaAsp.TagHelpers.HelloTagHelper>();
            __tagHelperExecutionContext.Add(__ChuskaAsp_TagHelpers_HelloTagHelper);
            BeginWriteTagHelperAttribute();
#line 6 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\IndexUser.cshtml"
            WriteLiteral(this.User.Identity.Name);

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __ChuskaAsp_TagHelpers_HelloTagHelper.TargetName = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("target-name", __ChuskaAsp_TagHelpers_HelloTagHelper.TargetName, 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(140, 201, true);
            WriteLiteral("\r\n    <h4>Feel free to view and order any of our products.</h4>\r\n</div>\r\n<hr class=\"hr-2 bg-dark\" />\r\n<div class=\"container-fluid product-holder\">\r\n    <div class=\"row d-flex justify-content-around\">\r\n");
            EndContext();
#line 12 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\IndexUser.cshtml"
            foreach (var product in Model)
            {
#line default
#line hidden
                BeginContext(393, 12, true);
                WriteLiteral("            ");
                EndContext();
                BeginContext(405, 562, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "289a529ab7864c7786e5787292c9171f", async() => {
                    BeginContext(502, 138, true);
                    WriteLiteral("\r\n                <div class=\"product p-1 chushka-bg-color rounded-top rounded-bottom\">\r\n                    <h5 class=\"text-center mt-3\">");
                    EndContext();
                    BeginContext(641, 12, false);
#line 16 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\IndexUser.cshtml"
                    Write(product.Name);

#line default
#line hidden
                    EndContext();
                    BeginContext(653, 111, true);
                    WriteLiteral("</h5>\r\n                    <hr class=\"hr-1 bg-white\" />\r\n                    <p class=\"text-white text-center\">");
                    EndContext();
                    BeginContext(765, 24, false);
#line 18 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\IndexUser.cshtml"
                    Write(product.ShortDescription);

#line default
#line hidden
                    EndContext();
                    BeginContext(789, 117, true);
                    WriteLiteral("</p>\r\n                    <hr class=\"hr-1 bg-white\" />\r\n                    <h6 class=\"text-center text-white mb-3\">$");
                    EndContext();
                    BeginContext(907, 13, false);
#line 20 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\IndexUser.cshtml"
                    Write(product.Price);

#line default
#line hidden
                    EndContext();
                    BeginContext(920, 43, true);
                    WriteLiteral("</h6>\r\n                </div>\r\n            ");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                BeginWriteTagHelperAttribute();
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __tagHelperExecutionContext.AddHtmlAttribute("asp-", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 14 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\IndexUser.cshtml"
                WriteLiteral(product.Id);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(967, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 23 "C:\Users\milen\source\repos\mvc-frameworks-asp.net-core\02. Razor-Views-and-Layouts\ChuskaAsp\Views\Home\IndexUser.cshtml"
            }

#line default
#line hidden
            BeginContext(980, 24, true);
            WriteLiteral("    </div>\r\n</div>\r\n\r\n\r\n");
            EndContext();
        }