#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"

            ViewData["Title"] = "Producs";

#line default
#line hidden
            BeginContext(69, 2, true);
            WriteLiteral("\n\n");
            EndContext();
#line 7 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
            if (Model.Products.OfType <Book>().ToList().Count > 0)
            {
#line default
#line hidden
                BeginContext(129, 73, true);
                WriteLiteral("    <div class=\"products\" style=\"clear:both\">\n        <h2>The Books</h2>\n");
                EndContext();
#line 12 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
                foreach (Book book in Model.Products.OfType <Book>().ToList())
                {
#line default
#line hidden
                    BeginContext(296, 52, false);
#line 14 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
                    Write(await Html.PartialAsync("_ProductSummaryBook", book));

#line default
#line hidden
                    EndContext();
#line 14 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(359, 11, true);
                WriteLiteral("    </div>\n");
                EndContext();
#line 17 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(372, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 19 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
            if (Model.Products.OfType <MusicCD>().ToList().Count > 0)
            {
#line default
#line hidden
                BeginContext(433, 77, true);
                WriteLiteral("    <div class=\"products\" style=\"clear:both\">\n        <h2>The Music CDs</h2>\n");
                EndContext();
#line 23 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
                foreach (MusicCD cd in Model.Products.OfType <MusicCD>().ToList())
                {
#line default
#line hidden
                    BeginContext(608, 53, false);
#line 25 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
                    Write(await Html.PartialAsync("_ProductSummaryMusicCD", cd));

#line default
#line hidden
                    EndContext();
#line 25 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(672, 11, true);
                WriteLiteral("    </div>\n");
                EndContext();
#line 28 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(685, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 30 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
            if (Model.Products.OfType <Movie>().ToList().Count > 0)
            {
#line default
#line hidden
                BeginContext(744, 74, true);
                WriteLiteral("    <div class=\"products\" style=\"clear:both\">\n        <h2>The Movies</h2>\n");
                EndContext();
#line 34 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
                foreach (Movie movie in Model.Products.OfType <Movie>().ToList())
                {
#line default
#line hidden
                    BeginContext(915, 54, false);
#line 36 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
                    Write(await Html.PartialAsync("_ProductSummaryMovie", movie));

#line default
#line hidden
                    EndContext();
#line 36 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(980, 11, true);
                WriteLiteral("    </div>\n");
                EndContext();
#line 39 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(993, 1, true);
            WriteLiteral("\n");
            EndContext();
            BeginContext(994, 267, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9bc3cee4994eae6276ef7542302d2e757031927c9409", async() => {
                BeginContext(1254, 1, true);
                WriteLiteral("\n");
                EndContext();
            }
                                                                        );
            __MbmStore_Infrastructure_PageLinkTagHelper = CreateTagHelper <global::MbmStore.Infrastructure.PageLinkTagHelper>();
            __tagHelperExecutionContext.Add(__MbmStore_Infrastructure_PageLinkTagHelper);
#line 41 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
            __MbmStore_Infrastructure_PageLinkTagHelper.PageModel = Model.PagingInfo;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __MbmStore_Infrastructure_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __MbmStore_Infrastructure_PageLinkTagHelper.PageAction = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#line 41 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
            __MbmStore_Infrastructure_PageLinkTagHelper.PageClassesEnabled = true;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("page-classes-enabled", __MbmStore_Infrastructure_PageLinkTagHelper.PageClassesEnabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __MbmStore_Infrastructure_PageLinkTagHelper.PageClass = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __MbmStore_Infrastructure_PageLinkTagHelper.PageClassNormal = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            __MbmStore_Infrastructure_PageLinkTagHelper.PageClassSelected = (string)__tagHelperAttribute_3.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
            if (__MbmStore_Infrastructure_PageLinkTagHelper.PageUrlValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-category", "MbmStore.Infrastructure.PageLinkTagHelper", "PageUrlValues"));
            }
#line 43 "C:\Users\ILKOKILLA\source\repos\Lesson10_MbmStore_startup\MbmStore\Views\Catalogue\Index.cshtml"
            __MbmStore_Infrastructure_PageLinkTagHelper.PageUrlValues["category"] = Model.CurrentCategory;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("page-url-category", __MbmStore_Infrastructure_PageLinkTagHelper.PageUrlValues["category"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
        }
示例#2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"

            ViewData["Title"] = "Producs";

#line default
#line hidden
            BeginContext(73, 4, true);
            WriteLiteral("\r\n\r\n");
            EndContext();
#line 7 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
            if (Model.Products.OfType <Book>().ToList().Count > 0)
            {
#line default
#line hidden
                BeginContext(138, 75, true);
                WriteLiteral("    <div class=\"products\" style=\"clear:both\">\r\n        <h2>The Books</h2>\r\n");
                EndContext();
#line 12 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
                foreach (Book book in Model.Products.OfType <Book>().ToList())
                {
#line default
#line hidden
                    BeginContext(309, 52, false);
#line 14 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
                    Write(await Html.PartialAsync("_ProductSummaryBook", book));

#line default
#line hidden
                    EndContext();
#line 14 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
                }

#line default
#line hidden
                BeginContext(374, 12, true);
                WriteLiteral("    </div>\r\n");
                EndContext();
#line 17 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
            }

#line default
#line hidden
            BeginContext(389, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 19 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
            if (Model.Products.OfType <MusicCD>().ToList().Count > 0)
            {
#line default
#line hidden
                BeginContext(453, 79, true);
                WriteLiteral("    <div class=\"products\" style=\"clear:both\">\r\n        <h2>The Music CDs</h2>\r\n");
                EndContext();
#line 23 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
                foreach (MusicCD cd in Model.Products.OfType <MusicCD>().ToList())
                {
#line default
#line hidden
                    BeginContext(632, 53, false);
#line 25 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
                    Write(await Html.PartialAsync("_ProductSummaryMusicCD", cd));

#line default
#line hidden
                    EndContext();
#line 25 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
                }

#line default
#line hidden
                BeginContext(698, 12, true);
                WriteLiteral("    </div>\r\n");
                EndContext();
#line 28 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
            }

#line default
#line hidden
            BeginContext(713, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 30 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
            if (Model.Products.OfType <Movie>().ToList().Count > 0)
            {
#line default
#line hidden
                BeginContext(775, 76, true);
                WriteLiteral("    <div class=\"products\" style=\"clear:both\">\r\n        <h2>The Movies</h2>\r\n");
                EndContext();
#line 34 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
                foreach (Movie movie in Model.Products.OfType <Movie>().ToList())
                {
#line default
#line hidden
                    BeginContext(950, 54, false);
#line 36 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
                    Write(await Html.PartialAsync("_ProductSummaryMovie", movie));

#line default
#line hidden
                    EndContext();
#line 36 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
                }

#line default
#line hidden
                BeginContext(1017, 12, true);
                WriteLiteral("    </div>\r\n");
                EndContext();
#line 39 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
            }

#line default
#line hidden
            BeginContext(1032, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(1034, 271, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6b6201079acd75b4b4dd949c3a3c7928da6ce9ef9035", async() => {
                BeginContext(1297, 2, true);
                WriteLiteral("\r\n");
                EndContext();
            }
                                                                        );
            __MbmStore_Infrastructure_PageLinkTagHelper = CreateTagHelper <global::MbmStore.Infrastructure.PageLinkTagHelper>();
            __tagHelperExecutionContext.Add(__MbmStore_Infrastructure_PageLinkTagHelper);
#line 41 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
            __MbmStore_Infrastructure_PageLinkTagHelper.PageModel = Model.PagingInfo;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __MbmStore_Infrastructure_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __MbmStore_Infrastructure_PageLinkTagHelper.PageAction = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#line 41 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
            __MbmStore_Infrastructure_PageLinkTagHelper.PageClassesEnabled = true;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("page-classes-enabled", __MbmStore_Infrastructure_PageLinkTagHelper.PageClassesEnabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __MbmStore_Infrastructure_PageLinkTagHelper.PageClass = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __MbmStore_Infrastructure_PageLinkTagHelper.PageClassNormal = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            __MbmStore_Infrastructure_PageLinkTagHelper.PageClassSelected = (string)__tagHelperAttribute_3.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
            if (__MbmStore_Infrastructure_PageLinkTagHelper.PageUrlValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-category", "MbmStore.Infrastructure.PageLinkTagHelper", "PageUrlValues"));
            }
#line 43 "/Users/elis/Desktop/programming/mbmstorenew/MbmStore/Views/Catalogue/Index.cshtml"
            __MbmStore_Infrastructure_PageLinkTagHelper.PageUrlValues["category"] = Model.CurrentCategory;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("page-url-category", __MbmStore_Infrastructure_PageLinkTagHelper.PageUrlValues["category"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
        }