예제 #1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(6, 2, true);
            WriteLiteral("\n\n");
            EndContext();
#line 4 "M:\netbean\project\NetCore_SPA_React\KittenKatKookie\KittenKatKookie\Pages\Index.cshtml"
            Layout = "_Layout";
            var recipes = await RecipesService.GetAllAsync();

#line default
#line hidden
            DefineSection("Title", async() => {
                BeginContext(103, 52, true);
                WriteLiteral("\n    <h2 class=\"title\">My favorite recipes</h2>\n    ");
                EndContext();
                BeginContext(155, 77, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ea4d05735ef84d77b6217b3136e0436d", async() => {
                    BeginContext(218, 10, true);
                    WriteLiteral("Add Recipe");
                    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.Page = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(232, 1, true);
                WriteLiteral("\n");
                EndContext();
            }
                          );
            BeginContext(235, 28, true);
            WriteLiteral("\n\n<div class=\"row recipes\">\n");
            EndContext();
#line 13 "M:\netbean\project\NetCore_SPA_React\KittenKatKookie\KittenKatKookie\Pages\Index.cshtml"
            foreach (var recipe in recipes)
            {
#line default
#line hidden
                BeginContext(307, 64, true);
                WriteLiteral("<div class=\"recipe col-md-4\">\n    <img class=\"img img-thumbnail\"");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 371, "\"", 393, 1);
#line 16 "M:\netbean\project\NetCore_SPA_React\KittenKatKookie\KittenKatKookie\Pages\Index.cshtml"
                WriteAttributeValue("", 377, recipe.SrcImage, 377, 16, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(394, 12, true);
                WriteLiteral(" />\n    <h3>");
                EndContext();
                BeginContext(406, 64, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "36afbc23952c4e218e6d5fa47f82d902", async() => {
                    BeginContext(455, 11, false);
#line 17 "M:\netbean\project\NetCore_SPA_React\KittenKatKookie\KittenKatKookie\Pages\Index.cshtml"
                    Write(recipe.Name);

#line default
#line hidden
                    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.Page = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 17 "M:\netbean\project\NetCore_SPA_React\KittenKatKookie\KittenKatKookie\Pages\Index.cshtml"
                WriteLiteral(recipe.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);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(470, 13, true);
                WriteLiteral("</h3>\n    <p>");
                EndContext();
                BeginContext(484, 18, false);
#line 18 "M:\netbean\project\NetCore_SPA_React\KittenKatKookie\KittenKatKookie\Pages\Index.cshtml"
                Write(recipe.Description);

#line default
#line hidden
                EndContext();
                BeginContext(502, 17, true);
                WriteLiteral("</p>\n</div>      ");
                EndContext();
#line 19 "M:\netbean\project\NetCore_SPA_React\KittenKatKookie\KittenKatKookie\Pages\Index.cshtml"
            }

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