示例#1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(140, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 6 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"

            ViewData["Title"] = "PostBlog";

#line default
#line hidden
            BeginContext(182, 1015, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "508ec04d17504b2fbac298bec19a7ac3", async() => {
                BeginContext(188, 44, true);
                WriteLiteral("\n    <h1>\n        Post Health Log\n    </h1>\n");
                EndContext();
#line 13 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                using (Html.BeginForm("PostBlog", "Health", FormMethod.Post))
                {
#line default
#line hidden
                    BeginContext(302, 23, false);
#line 15 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.AntiForgeryToken());

#line default
#line hidden
                    EndContext();
                    BeginContext(326, 40, true);
                    WriteLiteral("    <input type=\"hidden\" name=\"PostedBy\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=", 366, "", 399, 1);
#line 16 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    WriteAttributeValue("", 373, UserMan.GetUserName(User), 373, 26, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(399, 45, true);
                    WriteLiteral(" />\n    <div class=\"form-group\">    \n        ");
                    EndContext();
                    BeginContext(445, 59, false);
#line 18 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.LabelFor(m => m.AName, new { @class = "control-label" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(504, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(514, 60, false);
#line 19 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.TextBoxFor(m => m.AName, new { @class = "form-control" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(574, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(584, 39, false);
#line 20 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.ValidationMessageFor(m => m.AName));

#line default
#line hidden
                    EndContext();
                    BeginContext(623, 53, true);
                    WriteLiteral("\n    </div>\n    <div class=\"form-group\">    \n        ");
                    EndContext();
                    BeginContext(677, 65, false);
#line 23 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.LabelFor(m => m.Description, new { @class = "control-label" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(742, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(752, 67, false);
#line 24 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.TextAreaFor(m => m.Description, new { @class = "form-control" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(819, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(829, 45, false);
#line 25 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.ValidationMessageFor(m => m.Description));

#line default
#line hidden
                    EndContext();
                    BeginContext(874, 53, true);
                    WriteLiteral("\n    </div>\n    <div class=\"form-group\">    \n        ");
                    EndContext();
                    BeginContext(928, 60, false);
#line 28 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.LabelFor(m => m.Rating, new { @class = "control-label" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(988, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(998, 60, false);
#line 29 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.EditorFor(m => m.Rating, new { @class = "form-control" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1058, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(1068, 40, false);
#line 30 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                    Write(Html.ValidationMessageFor(m => m.Rating));

#line default
#line hidden
                    EndContext();
                    BeginContext(1108, 80, true);
                    WriteLiteral("\n    </div>\n   <button type=\"submit\" class=\"btn btn-primary\">Post Blog</button>\n");
                    EndContext();
#line 33 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/Health/PostBlog.cshtml"
                }

#line default
#line hidden
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(141, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 6 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"

            ViewData["Title"] = "PostWorkout";

#line default
#line hidden
            BeginContext(186, 1239, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "027e9b30c9734000af968aa7e2ae1368", async() => {
                BeginContext(192, 41, true);
                WriteLiteral("\n    <h1>\n        Post Workout\n    </h1>\n");
                EndContext();
#line 13 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                using (Html.BeginForm("PostBlog", "WorkOut", FormMethod.Post))
                {
#line default
#line hidden
                    BeginContext(304, 23, false);
#line 15 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.AntiForgeryToken());

#line default
#line hidden
                    EndContext();
                    BeginContext(328, 40, true);
                    WriteLiteral("    <input type=\"hidden\" name=\"PostedBy\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=", 368, "", 401, 1);
#line 16 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    WriteAttributeValue("", 375, UserMan.GetUserName(User), 375, 26, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(401, 4, true);
                    WriteLiteral(" />\n");
                    EndContext();
                    BeginContext(406, 41, true);
                    WriteLiteral("    <div class=\"form-group\">    \n        ");
                    EndContext();
                    BeginContext(448, 58, false);
#line 19 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.LabelFor(m => m.Name, new { @class = "control-label" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(506, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(516, 59, false);
#line 20 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.TextBoxFor(m => m.Name, new { @class = "form-control" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(575, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(585, 38, false);
#line 21 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.ValidationMessageFor(m => m.Name));

#line default
#line hidden
                    EndContext();
                    BeginContext(623, 53, true);
                    WriteLiteral("\n    </div>\n    <div class=\"form-group\">    \n        ");
                    EndContext();
                    BeginContext(677, 65, false);
#line 24 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.LabelFor(m => m.Description, new { @class = "control-label" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(742, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(752, 67, false);
#line 25 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.TextAreaFor(m => m.Description, new { @class = "form-control" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(819, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(829, 45, false);
#line 26 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.ValidationMessageFor(m => m.Description));

#line default
#line hidden
                    EndContext();
                    BeginContext(874, 53, true);
                    WriteLiteral("\n    </div>\n    <div class=\"form-group\">    \n        ");
                    EndContext();
                    BeginContext(928, 60, false);
#line 29 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.LabelFor(m => m.Rating, new { @class = "control-label" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(988, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(998, 60, false);
#line 30 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.EditorFor(m => m.Rating, new { @class = "form-control" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1058, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(1068, 40, false);
#line 31 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.ValidationMessageFor(m => m.Rating));

#line default
#line hidden
                    EndContext();
                    BeginContext(1108, 53, true);
                    WriteLiteral("\n    </div>\n    <div class=\"form-group\">    \n        ");
                    EndContext();
                    BeginContext(1162, 58, false);
#line 34 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.LabelFor(m => m.Date, new { @class = "control-label" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1220, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(1230, 58, false);
#line 35 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.EditorFor(m => m.Date, new { @class = "form-control" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1288, 9, true);
                    WriteLiteral("\n        ");
                    EndContext();
                    BeginContext(1298, 38, false);
#line 36 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                    Write(Html.ValidationMessageFor(m => m.Date));

#line default
#line hidden
                    EndContext();
                    BeginContext(1336, 80, true);
                    WriteLiteral("\n    </div>\n   <button type=\"submit\" class=\"btn btn-primary\">Post Blog</button>\n");
                    EndContext();
#line 39 "/Users/paulwyatt/Desktop/ARunnerLogger/ARunnerLogger/Views/WorkOut/PostBlog.cshtml"
                }

#line default
#line hidden
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

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