Exemple #1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"

            ViewBag.Title = StoreLocalizer.GetLocalizedHtmlString("lbl_ListStore");

#line default
#line hidden
            BeginContext(135, 313, true);
            WriteLiteral(@"

<div class=""container-fluid"">
    <div class=""block-header"">
    </div>
    <!-- Basic Examples -->
    <div class=""row clearfix"">
        <div class=""col-lg-12 col-md-12 col-sm-12 col-xs-12"">
            <div class=""card"">
                <div class=""header"">
                    <h2> 
                        ");
            EndContext();
            BeginContext(448, 216, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cce84f85f9228408ca9a664c5b32f58b0f6eed226531", async() => {
                BeginContext(611, 49, false);
#line 17 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                Write(CommonLocalizer.GetLocalizedHtmlString("btn_Add"));

#line default
#line hidden
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_4.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            BeginWriteTagHelperAttribute();
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __tagHelperExecutionContext.AddHtmlAttribute(")", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(664, 394, true);
            WriteLiteral(@"
                    </h2>  
                </div>
                <div class=""body"">
                    <div class=""table-responsive"">
                        <table class=""table table-bordered table-striped table-hover js-basic-example dataTable"">
                            <thead>
                            <tr>
                                <th>
                                    ");
            EndContext();
            BeginContext(1059, 61, false);
#line 26 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            Write(CommonLocalizer.GetLocalizedHtmlString("lbl_NumbericalOrder"));

#line default
#line hidden
            EndContext();
            BeginContext(1120, 112, true);
            WriteLiteral("\n                                </th>\n                                <th>\n                                    ");
            EndContext();
            BeginContext(1233, 54, false);
#line 29 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            Write(StoreLocalizer.GetLocalizedHtmlString("lbl_StoreName"));

#line default
#line hidden
            EndContext();
            BeginContext(1287, 112, true);
            WriteLiteral("\n                                </th>\n                                <th>\n                                    ");
            EndContext();
            BeginContext(1400, 50, false);
#line 32 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            Write(StoreLocalizer.GetLocalizedHtmlString("lbl_Phone"));

#line default
#line hidden
            EndContext();
            BeginContext(1450, 112, true);
            WriteLiteral("\n                                </th>\n                                <th>\n                                    ");
            EndContext();
            BeginContext(1563, 50, false);
#line 35 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            Write(StoreLocalizer.GetLocalizedHtmlString("lbl_Email"));

#line default
#line hidden
            EndContext();
            BeginContext(1613, 112, true);
            WriteLiteral("\n                                </th>\n                                <th>\n                                    ");
            EndContext();
            BeginContext(1726, 51, false);
#line 38 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            Write(StoreLocalizer.GetLocalizedHtmlString("lbl_Street"));

#line default
#line hidden
            EndContext();
            BeginContext(1777, 112, true);
            WriteLiteral("\n                                </th>\n                                <th>\n                                    ");
            EndContext();
            BeginContext(1890, 49, false);
#line 41 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            Write(StoreLocalizer.GetLocalizedHtmlString("lbl_City"));

#line default
#line hidden
            EndContext();
            BeginContext(1939, 112, true);
            WriteLiteral("\n                                </th>\n                                <th>\n                                    ");
            EndContext();
            BeginContext(2052, 50, false);
#line 44 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            Write(StoreLocalizer.GetLocalizedHtmlString("lbl_State"));

#line default
#line hidden
            EndContext();
            BeginContext(2102, 112, true);
            WriteLiteral("\n                                </th>\n                                <th>\n                                    ");
            EndContext();
            BeginContext(2215, 52, false);
#line 47 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            Write(StoreLocalizer.GetLocalizedHtmlString("lbl_ZipCode"));

#line default
#line hidden
            EndContext();
            BeginContext(2267, 112, true);
            WriteLiteral("\n                                </th>\n                                <th>\n                                    ");
            EndContext();
            BeginContext(2380, 53, false);
#line 50 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            Write(CommonLocalizer.GetLocalizedHtmlString("lbl_Actions"));

#line default
#line hidden
            EndContext();
            BeginContext(2433, 146, true);
            WriteLiteral("\n                                </th>\n                            </tr>\n                            </thead>\n                            <tbody>\n");
            EndContext();
#line 55 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            var stt = 0;

#line default
#line hidden
            BeginContext(2624, 28, true);
            WriteLiteral("                            ");
            EndContext();
#line 56 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            foreach (var item in Model)
            {
                stt += 1;

#line default
#line hidden
                BeginContext(2753, 77, true);
                WriteLiteral("                                <tr>\n                                    <td>");
                EndContext();
                BeginContext(2831, 3, false);
#line 60 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                Write(stt);

#line default
#line hidden
                EndContext();
                BeginContext(2834, 87, true);
                WriteLiteral("</td>\n                                    <td>\n                                        ");
                EndContext();
                BeginContext(2922, 44, false);
#line 62 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.StoreName));

#line default
#line hidden
                EndContext();
                BeginContext(2966, 124, true);
                WriteLiteral("\n                                    </td>\n                                    <td>\n                                        ");
                EndContext();
                BeginContext(3091, 40, false);
#line 65 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Phone));

#line default
#line hidden
                EndContext();
                BeginContext(3131, 124, true);
                WriteLiteral("\n                                    </td>\n                                    <td>\n                                        ");
                EndContext();
                BeginContext(3256, 40, false);
#line 68 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Email));

#line default
#line hidden
                EndContext();
                BeginContext(3296, 124, true);
                WriteLiteral("\n                                    </td>\n                                    <td>\n                                        ");
                EndContext();
                BeginContext(3421, 41, false);
#line 71 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Street));

#line default
#line hidden
                EndContext();
                BeginContext(3462, 124, true);
                WriteLiteral("\n                                    </td>\n                                    <td>\n                                        ");
                EndContext();
                BeginContext(3587, 39, false);
#line 74 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.City));

#line default
#line hidden
                EndContext();
                BeginContext(3626, 124, true);
                WriteLiteral("\n                                    </td>\n                                    <td>\n                                        ");
                EndContext();
                BeginContext(3751, 40, false);
#line 77 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.State));

#line default
#line hidden
                EndContext();
                BeginContext(3791, 124, true);
                WriteLiteral("\n                                    </td>\n                                    <td>\n                                        ");
                EndContext();
                BeginContext(3916, 42, false);
#line 80 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.ZipCode));

#line default
#line hidden
                EndContext();
                BeginContext(3958, 125, true);
                WriteLiteral("\n                                    </td>\n\n                                    <td>\n                                        ");
                EndContext();
                BeginContext(4083, 167, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cce84f85f9228408ca9a664c5b32f58b0f6eed2218746", async() => {
                    BeginContext(4196, 50, false);
#line 85 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                    Write(CommonLocalizer.GetLocalizedHtmlString("btn_Edit"));

#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.Controller = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 85 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                WriteLiteral(item.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(4250, 43, true);
                WriteLiteral(" |\n                                        ");
                EndContext();
                BeginContext(4293, 300, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cce84f85f9228408ca9a664c5b32f58b0f6eed2221526", async() => {
                    BeginContext(4537, 52, false);
#line 88 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                    Write(CommonLocalizer.GetLocalizedHtmlString("btn_Delete"));

#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.Controller = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "onclick", 4, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                AddHtmlAttributeValue(" ", 4392, "return", 4393, 7, true);
                AddHtmlAttributeValue(" ", 4399, "confirm(\'", 4400, 10, true);
#line 87 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                AddHtmlAttributeValue("", 4409, CommonLocalizer.GetLocalizedHtmlString("btn_YouDelete"), 4409, 56, false);

#line default
#line hidden
                AddHtmlAttributeValue("", 4465, "\')", 4465, 2, true);
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 88 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
                WriteLiteral(item.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(4593, 81, true);
                WriteLiteral("\n                                    </td>\n                                </tr>\n");
                EndContext();
#line 91 "/home/local/3SI/tuan.dv/RiderProjects/3S/LoginCodeFirst/LoginCodeFirst/Views/Store/Index.cshtml"
            }

#line default
#line hidden
            BeginContext(4704, 171, true);
            WriteLiteral("                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");
            EndContext();
        }