public MyHoaDonsController(ESHOPContext ctx)
 {
     db = ctx;
 }
예제 #2
0
 public CustomersController(ESHOPContext context)
 {
     _context = context;
 }
예제 #3
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(36, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"

            ViewData["Title"] = "Details";
            Layout            = "~/Views/Shared/_frontEnd.cshtml";

#line default
#line hidden
            BeginContext(130, 103, true);
            WriteLiteral("\r\n<div class=\"content\">\r\n    <div class=\"content_top\">\r\n        <div class=\"heading\">\r\n            <h3>");
            EndContext();
            BeginContext(234, 12, false);
#line 11 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"
            Write(Model.TieuDe);

#line default
#line hidden
            EndContext();
            BeginContext(246, 113, true);
            WriteLiteral("</h3>\r\n        </div>\r\n\r\n        <div class=\"clear\"></div>\r\n    </div>\r\n    <div class=\"section-group\">\r\n        ");
            EndContext();
            BeginContext(360, 23, false);
#line 17 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"
            Write(Html.Raw(Model.NoiDung));

#line default
#line hidden
            EndContext();
            BeginContext(383, 42, true);
            WriteLiteral("\r\n   \r\n    </div>\r\n</div>\r\n<div>\r\n  \r\n    ");
            EndContext();
            BeginContext(425, 32, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f552276a58ee4fd28f4b0c067d09e066", async() => {
                BeginContext(447, 6, true);
                WriteLiteral("Trở về");
                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.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(457, 257, true);
            WriteLiteral(@"
</div>

<div class=""single-related-products"">
    <div class=""container"">
        <h3 class=""animated wow slideInUp"" data-wow-delay="".5s"">Tin liên quan</h3>
        <div class=""new-collections-grids"">
            <div class=""new-collections-grid"">
");
            EndContext();
#line 31 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"

            ESHOPContext db             = new ESHOPContext();
            var          listSP_related = db.TinTuc.Where(p => p.LoaiTt == Model.LoaiTt).Take(4).ToList();


#line default
#line hidden
            BeginContext(919, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 36 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"
            foreach (var item in listSP_related)
            {
#line default
#line hidden
                BeginContext(1017, 183, true);
                WriteLiteral("                <div class=\"container-fluid\">\r\n                    <div class=\"row align-content-center\">\r\n                        <div class=\"col-sm-3\">\r\n                            ");
                EndContext();
                BeginContext(1200, 89, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "bec56a55524a447f9362e6f6433f5c95", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "src", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                AddHtmlAttributeValue("", 1210, "~/HangHoa/", 1210, 10, true);
#line 42 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"
                AddHtmlAttributeValue("", 1220, item.Hinh, 1220, 10, false);

#line default
#line hidden
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1289, 138, true);
                WriteLiteral("\r\n                        </div>\r\n                        <div class=\"col-sm-8 align-content-between\">\r\n                            <h3><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 1427, "\"", 1458, 2);
                WriteAttributeValue("", 1434, "/News/Details/", 1434, 14, true);
#line 45 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"
                WriteAttributeValue("", 1448, item.MaTt, 1448, 10, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1459, 1, true);
                WriteLiteral(">");
                EndContext();
                BeginContext(1461, 11, false);
#line 45 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"
                Write(item.TieuDe);

#line default
#line hidden
                EndContext();
                BeginContext(1472, 54, true);
                WriteLiteral(" </a></h3>\r\n                            <h4>Posted on ");
                EndContext();
                BeginContext(1527, 12, false);
#line 46 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"
                Write(item.NgayTao);

#line default
#line hidden
                EndContext();
                BeginContext(1539, 36, true);
                WriteLiteral(" </h4>\r\n                            ");
                EndContext();
                BeginContext(1576, 11, false);
#line 47 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"
                Write(item.LoaiTt);

#line default
#line hidden
                EndContext();
                BeginContext(1587, 86, true);
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n");
                EndContext();
#line 51 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Views\News\Details.cshtml"
            }

#line default
#line hidden
            BeginContext(1692, 99, true);
            WriteLiteral("            </div>\r\n            <div class=\"clearfix\"> </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n");
            EndContext();
        }
 public NhaCungCapsController(ESHOPContext context)
 {
     _context = context;
 }
예제 #5
0
 public HangHoaController(ESHOPContext ctx)
 {
     db = ctx;
 }
예제 #6
0
 public NewsController(ESHOPContext context)
 {
     _context = context;
 }
예제 #7
0
 public HomeController(ESHOPContext ctx)
 {
     db = ctx;
 }
 public ChangePasswordController(ESHOPContext context)
 {
     db = context;
 }
예제 #9
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(0, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 2 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Shared\_Layout.cshtml"

            Layout = null;

#line default
#line hidden
            BeginContext(29, 213, true);
            WriteLiteral("\r\n<!--\r\nAuthor: W3layouts\r\nAuthor URL: http://w3layouts.com\r\nLicense: Creative Commons Attribution 3.0 Unported\r\nLicense URL: http://creativecommons.org/licenses/by/3.0/\r\n-->\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n\r\n");
            EndContext();
            BeginContext(242, 1621, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cc516c2a719942d899610103342edab5", async() => {
                BeginContext(248, 811, true);
                WriteLiteral(@"
    <title>Modernize an Admin Panel Category Bootstrap Responsive Web Template | Blank page :: w3layouts</title>
    <!-- Meta Tags -->
    <meta name=""viewport"" content=""width=device-width, initial-scale=1"">
    <meta charset=""utf-8"">
    <meta name=""keywords"" content=""Modernize Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, Sony Ericsson, Motorola web design"" />
    <script>
        addEventListener(""load"", function () {
            setTimeout(hideURLbar, 0);
        }, false);

        function hideURLbar() {
            window.scrollTo(0, 1);
        }
    </script>
    <!-- //Meta Tags -->
    <!-- Style-sheets -->
    <!-- Bootstrap Css -->
    ");
                EndContext();
                BeginContext(1059, 86, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "1c99f7cf60ae4c78b4df4aae5c6509ad", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1145, 59, true);
                WriteLiteral("\r\n    <!-- Bootstrap Css -->\r\n    <!-- Common Css -->\r\n    ");
                EndContext();
                BeginContext(1204, 82, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "49844dd65ab94e938b65592c7056996f", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1286, 55, true);
                WriteLiteral("\r\n    <!--// Common Css -->\r\n    <!-- Nav Css -->\r\n    ");
                EndContext();
                BeginContext(1341, 48, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "7e01d9ea28fa4e9bb66631d22f90a344", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1389, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(1395, 53, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "ee3ab5559ba44399b6bfe91af47bbaae", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1448, 60, true);
                WriteLiteral("\r\n    <!--// Nav Css -->\r\n    <!-- Fontawesome Css -->\r\n    ");
                EndContext();
                BeginContext(1508, 62, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "89a76b37402842cd86be090285efb37c", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1570, 286, true);
                WriteLiteral(@"
    <!--// Fontawesome Css -->
    <!--// Style-sheets -->
    <!--web-fonts-->
    <link href=""//fonts.googleapis.com/css?family=Poiret+One"" rel=""stylesheet"">
    <link href=""//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700"" rel=""stylesheet"">
    <!--//web-fonts-->
");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1863, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 52 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Shared\_Layout.cshtml"

            ESHOPContext db        = new ESHOPContext();
            int          c_hoidaps = db.HoiDap.Where(p => p.TrangThaiTl == false).ToList().Count();
            int          c_hoadons = db.HoaDon.Where(p => p.MaTrangThai == 0).ToList().Count();

#line default
#line hidden
            BeginContext(2079, 4450, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5a2b603cc1ab49b0a60ad04afd96ec3f", async() => {
                BeginContext(2085, 1032, true);
                WriteLiteral(@"
    <div class=""wrapper"">
        <!-- Sidebar Holder -->
        <nav id=""sidebar"">
            <div class=""sidebar-header"">
                <h1>
                    <a href=""/Admin"">Modernize</a>
                </h1>
                <span>M</span>
            </div>
            <div class=""profile-bg""></div>
            <ul class=""list-unstyled components"">
                <li>
                    <a href=""/Admin"">
                        <i class=""fas fa-th-large""></i>
                        Trang chủ
                    </a>
                </li>
                <li>
                    <a href=""/Admin/NhanViens"">
                        <i class=""fas fa-user""></i>
                        Nhân viên
                    </a>
                </li>

                <li>
                    <a href=""/Admin/HoiDap"">
                        <i class=""far fa-envelope""></i>
                        Phản hồi
                        <span class=""badge badge-secondary float-md-right bg-");
                WriteLiteral("danger\">");
                EndContext();
                BeginContext(3118, 9, false);
#line 86 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Shared\_Layout.cshtml"
                Write(c_hoidaps);

#line default
#line hidden
                EndContext();
                BeginContext(3127, 526, true);
                WriteLiteral(@"</span>
                    </a>
                </li>

                <li>
                    <a href=""/Admin/HangHoas"">
                        <i class=""far fa-window-restore""></i>
                        Hàng hóa
                    </a>
                </li>
                <li>
                    <a href=""/Admin/HoaDons"">
                        <i class=""fas fa-money-bill-alt""></i>
                        Hóa đơn
                        <span class=""badge badge-secondary float-md-right bg-danger"">");
                EndContext();
                BeginContext(3654, 9, false);
#line 100 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Shared\_Layout.cshtml"
                Write(c_hoadons);

#line default
#line hidden
                EndContext();
                BeginContext(3663, 753, true);
                WriteLiteral(@"</span>
                    </a>
                </li>
                <li>
                    <a href=""/Admin/KhachHangs"">
                        <i class=""fas fa-users""></i>
                        Khách Hàng
                    </a>
                </li>
                <li>
                    <a href=""/Admin/NhaCungCaps"">
                        <i class=""far fa-hourglass""></i>
                        Nhà Cung Cấp
                    </a>
                </li>
                <li>
                    <a href=""/Admin/PhieuNhapHang"">
                        <i class=""fa fa-download""></i>
                        Phiếu nhập hàng
                    </a>
                </li>
                <li>
                    ");
                EndContext();
                BeginContext(4416, 171, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9b8e2176656b4b5b8050e707799db460", async() => {
                    BeginContext(4468, 115, true);
                    WriteLiteral("\r\n                        <i class=\"far fa-window-close\"></i>\r\n                        Logout\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.Action = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(4587, 538, true);
                WriteLiteral(@"
                </li>
            </ul>
        </nav>

        <!-- Page Content Holder -->
        <div id=""content"">
            <!-- top-bar -->
            <nav class=""navbar navbar-default mb-xl-5 mb-4"">

                <div class=""navbar-header"">
                    <button type=""button"" id=""sidebarCollapse"" class=""btn btn-info navbar-btn"">
                        <i class=""fas fa-bars""></i>
                    </button>
                </div>

            </nav>
            <!--// top-bar -->
            ");
                EndContext();
                BeginContext(5126, 12, false);
#line 143 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Shared\_Layout.cshtml"
                Write(RenderBody());

#line default
#line hidden
                EndContext();
                BeginContext(5138, 71, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n\r\n\r\n    <!-- Required common Js -->\r\n    ");
                EndContext();
                BeginContext(5209, 54, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3542714dbe1b4abebb568675aa9edb80", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(5263, 911, true);
                WriteLiteral(@"

    <!-- //Required common Js -->
    <!-- Sidebar-nav Js -->
    <script>
        $(document).ready(function () {
            $('#sidebarCollapse').on('click', function () {
                $('#sidebar').toggleClass('active');
            });
        });
    </script>
    <!--// Sidebar-nav Js -->
    <!-- dropdown nav -->
    <script>
        $(document).ready(function () {
            $("".dropdown"").hover(
                function () {
                    $('.dropdown-menu', this).stop(true, true).slideDown(""fast"");
                    $(this).toggleClass('open');
                },
                function () {
                    $('.dropdown-menu', this).stop(true, true).slideUp(""fast"");
                    $(this).toggleClass('open');
                }
            );
        });
    </script>
    <!-- //dropdown nav -->
    <!-- Js for bootstrap working-->
    ");
                EndContext();
                BeginContext(6174, 51, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e78fd8734f242e0b3d832cf6ad683cf", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(6225, 47, true);
                WriteLiteral("\r\n    <!-- //Js for bootstrap working -->\r\n    ");
                EndContext();
                BeginContext(6272, 42, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2a4522736fd44960968c3e7a44c593e8", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_12);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(6314, 12, true);
                WriteLiteral("\r\n\r\n  \r\n    ");
                EndContext();
                BeginContext(6326, 71, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c39f63aec035408498bf7fdd81d6489e", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_13);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(6397, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(6403, 51, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fabcc34483a54e32a0532d1daa03383a", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_14);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(6454, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(6460, 60, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "10079c5e2a024b77b79d26a650f5a929", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_15);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(6520, 2, true);
                WriteLiteral("\r\n");
                EndContext();
            }
                                                                        );
            __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();
            BeginContext(6529, 13, true);
            WriteLiteral("\r\n\r\n</html>\r\n");
            EndContext();
        }
예제 #10
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"

            ViewData["Title"] = "Home Page";

#line default
#line hidden
            BeginContext(45, 312, true);
            WriteLiteral(@"

<div class=""banner"" style=""background: url(/images/banner.jpg) no-repeat 0px 0px;"">
    <div class=""container"">
        <div class=""banner-info animated wow zoomIn"" data-wow-delay="".5s"">
            <h3>ESHOP</h3>
            <h4 style=""margin:auto"">Fashionista</h4>
        </div>
    </div>
</div>
");
            EndContext();
#line 14 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"

            ESHOPContext   db      = new ESHOPContext();
            List <HangHoa> hhs     = db.HangHoa.ToList();
            List <HangHoa> hhnb    = new List <HangHoa>();
            int            demhhnb = 0;
            foreach (var item in hhs)
            {
                List <BinhLuanSp> bls = db.BinhLuanSp.Where(p => p.MaHh == item.MaHh).ToList();
                if (bls.Count > 0 && demhhnb < 8)
                {
                    ++demhhnb;
                    hhnb.Add(item);
                }
            }
            if (demhhnb < 8)
            {
                Random         rnd        = new Random();
                List <HangHoa> hhs_random = hhs.OrderBy(x => rnd.Next()).ToList();

                foreach (var hh in hhs_random)
                {
                    if (!hhnb.Contains(hh) && demhhnb < 8)
                    {
                        ++demhhnb;
                        hhnb.Add(hh);
                    }
                }
            }

#line default
#line hidden
            BeginContext(1125, 195, true);
            WriteLiteral("<div class=\"new-collections\">\r\n    <div class=\"container\">\r\n        <h3 class=\"animated wow zoomIn\" data-wow-delay=\".5s\">Sản phẩm nổi bật</h3>\r\n        <div class=\"new-collections-grids\">\r\n\r\n");
            EndContext();
#line 48 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
            foreach (var item in hhnb)
            {
#line default
#line hidden
                BeginContext(1376, 291, true);
                WriteLiteral(@"                <div class=""col-md-3 new-collections-grid"">
                    <div class=""new-collections-grid1 new-collections-grid1-image-width animated wow slideInUp"" data-wow-delay="".5s"">
                        <div class=""new-collections-grid1-image"">
                            ");
                EndContext();
                BeginContext(1667, 168, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "35588fcb1bd543d89b0982298eda375f", async() => {
                    BeginContext(1766, 65, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "918a7b5d2e994611911d984acf053695", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "src", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    AddHtmlAttributeValue("", 1776, "~/HangHoa/", 1776, 10, true);
#line 53 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                    AddHtmlAttributeValue("", 1786, item.Hinh, 1786, 10, false);

#line default
#line hidden
                    EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    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.Action = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-mahh", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 53 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                WriteLiteral(item.MaHh);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-mahh", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh"], 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();
                BeginContext(1835, 142, true);
                WriteLiteral("\r\n                            <div class=\"new-collections-grid1-image-pos new-collections-grid1-image-pos1\">\r\n                                ");
                EndContext();
                BeginContext(1977, 94, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "16e9577b789343d787f9d3413489bfb1", async() => {
                    BeginContext(2054, 13, true);
                    WriteLiteral("Xem chi tiết");
                    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.Action = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-mahh", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 55 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                WriteLiteral(item.MaHh);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-mahh", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh"], 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(2071, 38, true);
                WriteLiteral("\r\n                            </div>\r\n");
                EndContext();
#line 57 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"

                List <SanPhamKho> sanPhamKhos = db.SanPhamKho.Where(p => p.MaHh == item.MaHh).ToList();
                var soluong = sanPhamKhos.Sum(x => x.SoLuong);
                if (soluong > 10)
                {
                    double gg = item.GiamGia * 100;

#line default
#line hidden
                    BeginContext(2496, 103, true);
                    WriteLiteral("                                    <div class=\"new-one\">\r\n                                        <p>-");
                    EndContext();
                    BeginContext(2600, 2, false);
#line 64 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                    Write(gg);

#line default
#line hidden
                    EndContext();
                    BeginContext(2602, 51, true);
                    WriteLiteral("%</p>\r\n                                    </div>\r\n");
                    EndContext();
#line 66 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                }
                else if (soluong > 0)
                {
#line default
#line hidden
                    BeginContext(2778, 167, true);
                    WriteLiteral("                                    <div class=\"new-one\">\r\n                                        <p>Sắp hết hàng</p>\r\n                                    </div>\r\n");
                    EndContext();
#line 72 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(3053, 167, true);
                    WriteLiteral("                                    <div class=\"new-one\">\r\n                                        <p>Tạm hết hàng</p>\r\n                                    </div>\r\n");
                    EndContext();
#line 78 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                }


#line default
#line hidden
                BeginContext(3286, 158, true);
                WriteLiteral("                            <div class=\"new-collections-grid1-right new-collections-grid1-right-rate\">\r\n                                <div class=\"rating\">\r\n");
                EndContext();
#line 82 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"

                List <YeuThich> yts    = db.YeuThich.Where(p => p.MaHh == item.MaHh).ToList();
                double          diemyt = 0;
                if (yts.Count > 0)
                {
                    double tongdiem = 0;
                    foreach (var y in yts)
                    {
                        tongdiem = tongdiem + y.DiemDanhGia;
                    }
                    diemyt = tongdiem / yts.Count();
                    int diem = int.Parse(diemyt.ToString().Split(".")[0]);
                    if (diem < 3)
                    {
                        diem = 3;
                    }
                    for (int i = 1; i <= 5; i++)
                    {
                        if (i <= diem)
                        {
#line default
#line hidden
                            BeginContext(4703, 52, true);
                            WriteLiteral("                                                    ");
                            EndContext();
                            BeginContext(4755, 44, false);
                            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "ffbf55de86634a738f87c00b8c397ce5", async() => {
                            }
                                                                                        );
                            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                            if (!__tagHelperExecutionContext.Output.IsContentModified)
                            {
                                await __tagHelperExecutionContext.SetOutputContentAsync();
                            }
                            Write(__tagHelperExecutionContext.Output);
                            __tagHelperExecutionContext = __tagHelperScopeManager.End();
                            EndContext();
                            BeginContext(4799, 2, true);
                            WriteLiteral("\r\n");
                            EndContext();
#line 103 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                        }
                        else if (i > diem)
                        {
#line default
#line hidden
                            BeginContext(4971, 52, true);
                            WriteLiteral("                                                    ");
                            EndContext();
                            BeginContext(5023, 44, false);
                            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "af59f4826bfe4a8d8c00a9c980fce80b", async() => {
                            }
                                                                                        );
                            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
                            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                            if (!__tagHelperExecutionContext.Output.IsContentModified)
                            {
                                await __tagHelperExecutionContext.SetOutputContentAsync();
                            }
                            Write(__tagHelperExecutionContext.Output);
                            __tagHelperExecutionContext = __tagHelperScopeManager.End();
                            EndContext();
                            BeginContext(5067, 2, true);
                            WriteLiteral("\r\n");
                            EndContext();
#line 107 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                        }
                    }
                }
                else
                {
#line default
#line hidden
#line 112 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                    for (int i = 1; i <= 5; i++)
                    {
#line default
#line hidden
                        BeginContext(5421, 48, true);
                        WriteLiteral("                                                ");
                        EndContext();
                        BeginContext(5469, 44, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "132493228ba04fd2a169513121540354", async() => {
                        }
                                                                                    );
                        __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                        __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                        __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                        __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(5513, 2, true);
                        WriteLiteral("\r\n");
                        EndContext();
#line 115 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                    }

#line default
#line hidden
#line 115 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                }


#line default
#line hidden
                BeginContext(5644, 140, true);
                WriteLiteral("                                </div>\r\n\r\n\r\n                            </div>\r\n                        </div>\r\n                        <h4>");
                EndContext();
                BeginContext(5784, 92, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e5fc97a84d034b4ba331cef063eac168", async() => {
                    BeginContext(5862, 10, false);
#line 123 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                    Write(item.TenHh);

#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.Action = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-mahh", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 123 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                WriteLiteral(item.MaHh);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-mahh", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh"], 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(5876, 7, true);
                WriteLiteral("</h4>\r\n");
                EndContext();
#line 124 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"

                double giaban = item.DonGia * (1 - item.GiamGia);


#line default
#line hidden
                BeginContext(6017, 121, true);
                WriteLiteral("                        <div class=\"new-collections-grid1-left simpleCart_shelfItem\">\r\n                            <p><i>");
                EndContext();
                BeginContext(6139, 29, false);
#line 128 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                Write(item.DonGia.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(6168, 32, true);
                WriteLiteral(" đ</i> <span class=\"item_price\">");
                EndContext();
                BeginContext(6201, 24, false);
#line 128 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
                Write(giaban.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(6225, 99, true);
                WriteLiteral(" đ</span></p>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n");
                EndContext();
#line 132 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Views\Home\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(6339, 34, true);
            WriteLiteral("        </div>\r\n    </div>\r\n</div>");
            EndContext();
        }
예제 #11
0
 public VoucherController(ESHOPContext ctx)
 {
     db = ctx;
 }
예제 #12
0
 public OrdersController(ESHOPContext context)
 {
     _context = context;
 }
예제 #13
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 4 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"

            ViewData["Title"] = "Index";
            Layout            = "~/Areas/Admin/Views/Shared/_Layout.cshtml";

#line default
#line hidden
            BeginContext(247, 231, true);
            WriteLiteral("\r\n<div class=\"bootstrap-tab animated wow slideInUp\" data-wow-delay=\".5s\">\r\n    <div class=\"bs-example bs-example-tabs\" role=\"tabpanel\" data-example-id=\"togglable-tabs\">\r\n        <ul id=\"myTab\" class=\"nav nav-tabs\" role=\"tablist\">\r\n");
            EndContext();
#line 12 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"

            ESHOPContext db               = new ESHOPContext();
            var          hoiDapsChuaDoc   = db.HoiDap.Where(p => p.TrangThaiTl == false).OrderByDescending(p => p.NgayDua).ToList();
            int          c_hoiDapsChuaDoc = db.HoiDap.Where(p => p.TrangThaiTl == false).ToList().Count();
            var          hoiDapsDaDoc     = db.HoiDap.Where(p => p.TrangThaiTl == true).OrderByDescending(p => p.NgayDua).ToList();
            int          c_hoiDapsDaDoc   = db.HoiDap.Where(p => p.TrangThaiTl == true).ToList().Count();


#line default
#line hidden
            BeginContext(1016, 203, true);
            WriteLiteral("            <li role=\"presentation\" class=\"active\"><a href=\"#home\" id=\"home-tab\" role=\"tab\" data-toggle=\"tab\" aria-controls=\"home\" aria-expanded=\"true\">Phản hồi chưa đọc<span class=\"badge badge-info\">");
            EndContext();
            BeginContext(1220, 16, false);
#line 19 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
            Write(c_hoiDapsChuaDoc);

#line default
#line hidden
            EndContext();
            BeginContext(1236, 195, true);
            WriteLiteral("</span></a></li>\r\n            <li role=\"presentation\"><a href=\"#profile\" role=\"tab\" id=\"profile-tab\" data-toggle=\"tab\" aria-controls=\"profile\">Phản hồi đã đọc <span class =\"badge badge-info\">");
            EndContext();
            BeginContext(1432, 14, false);
#line 20 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
            Write(c_hoiDapsDaDoc);

#line default
#line hidden
            EndContext();
            BeginContext(1446, 265, true);
            WriteLiteral(@"</span></a></li>
        </ul>
        <div id=""myTabContent"" class=""tab-content"">
            <div role=""tabpanel"" class=""tab-pane fade in active bootstrap-tab-text"" id=""home"" aria-labelledby=""home-tab"">
                <div class=""bootstrap-tab-text-grids"">
");
            EndContext();
#line 25 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
            foreach (var item in hoiDapsChuaDoc)
            {
#line default
#line hidden
                BeginContext(1795, 63, true);
                WriteLiteral("                        <div class=\"bootstrap-tab-text-grid\">\r\n");
                EndContext();
#line 29 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"

                KhachHang khachHang = db.KhachHang.SingleOrDefault(p => p.MaKh == item.MaKh);


#line default
#line hidden
                BeginContext(2032, 104, true);
                WriteLiteral("                            <div class=\"bootstrap-tab-text-grid-left\">\r\n                                ");
                EndContext();
                BeginContext(2136, 104, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "219aacc3289f419d868da4138f2d4574", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "src", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                AddHtmlAttributeValue("", 2146, "~/UserAvatar/", 2146, 13, true);
#line 33 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                AddHtmlAttributeValue("", 2159, khachHang.Hinh, 2159, 15, false);

#line default
#line hidden
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2240, 203, true);
                WriteLiteral("\r\n                            </div>\r\n                            <div class=\"bootstrap-tab-text-grid-right\">\r\n                                <ul>\r\n\r\n                                    <li><a href=\"#\">");
                EndContext();
                BeginContext(2444, 15, false);
#line 38 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                Write(khachHang.HoTen);

#line default
#line hidden
                EndContext();
                BeginContext(2459, 51, true);
                WriteLiteral("</a></li>\r\n                                    <li>");
                EndContext();
                BeginContext(2510, 143, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a0170565cc284aa09a6b464adb1b79c9", async() => {
                    BeginContext(2580, 69, true);
                    WriteLiteral("<span class=\"glyphicon glyphicon-share\" aria-hidden=\"true\"></span>Xem");
                    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.Action = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 39 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                WriteLiteral(item.MaHd);

#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(2653, 77, true);
                WriteLiteral("</li>\r\n                                    <li style=\"font-size:small\"><span>");
                EndContext();
                BeginContext(2731, 12, false);
#line 40 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                Write(item.NgayDua);

#line default
#line hidden
                EndContext();
                BeginContext(2743, 126, true);
                WriteLiteral("</span></li>\r\n                                </ul>\r\n                                <p>\r\n                                    ");
                EndContext();
                BeginContext(2870, 11, false);
#line 43 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                Write(item.CauHoi);

#line default
#line hidden
                EndContext();
                BeginContext(2881, 203, true);
                WriteLiteral("\r\n                                </p>\r\n                            </div>\r\n                            <br />\r\n                            <div class=\"clearfix\"> </div>\r\n                        </div>\r\n");
                EndContext();
#line 49 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(3109, 307, true);
            WriteLiteral(@"                </div>
                </div>
            <div role=""tabpanel"" class=""tab-pane fade bootstrap-tab-text"" id=""profile"" aria-labelledby=""profile-tab"">
                <div class=""bootstrap-tab-text-grids"">
                    <div class=""bootstrap-tab-text-grids"" style=""margin:0 0 5em;"">
");
            EndContext();
#line 56 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
            foreach (var item in hoiDapsDaDoc)
            {
#line default
#line hidden
                BeginContext(3506, 63, true);
                WriteLiteral("                        <div class=\"bootstrap-tab-text-grid\">\r\n");
                EndContext();
#line 60 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"

                KhachHang khachHang = db.KhachHang.SingleOrDefault(p => p.MaKh == item.MaKh);


#line default
#line hidden
                BeginContext(3743, 104, true);
                WriteLiteral("                            <div class=\"bootstrap-tab-text-grid-left\">\r\n                                ");
                EndContext();
                BeginContext(3847, 104, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "e7b3de8ca79b4069a03d42f1615264e3", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "src", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                AddHtmlAttributeValue("", 3857, "~/UserAvatar/", 3857, 13, true);
#line 64 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                AddHtmlAttributeValue("", 3870, khachHang.Hinh, 3870, 15, false);

#line default
#line hidden
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3951, 201, true);
                WriteLiteral("\r\n                            </div>\r\n                            <div class=\"bootstrap-tab-text-grid-right\">\r\n                                <ul>\r\n                                    <li><a href=\"#\">");
                EndContext();
                BeginContext(4153, 15, false);
#line 68 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                Write(khachHang.HoTen);

#line default
#line hidden
                EndContext();
                BeginContext(4168, 51, true);
                WriteLiteral("</a></li>\r\n                                    <li>");
                EndContext();
                BeginContext(4219, 120, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "036e2473b5ac40b7a410e1355d018524", async() => {
                    BeginContext(4265, 70, true);
                    WriteLiteral("<span class=\"glyphicon glyphicon-trash\" aria-hidden=\"true\"></span>Xóa");
                    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.Action = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 69 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                WriteLiteral(item.MaHd);

#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(4339, 77, true);
                WriteLiteral("</li>\r\n                                    <li style=\"font-size:small\"><span>");
                EndContext();
                BeginContext(4417, 12, false);
#line 70 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                Write(item.NgayDua);

#line default
#line hidden
                EndContext();
                BeginContext(4429, 126, true);
                WriteLiteral("</span></li>\r\n                                </ul>\r\n                                <p>\r\n                                    ");
                EndContext();
                BeginContext(4556, 11, false);
#line 73 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
                Write(item.CauHoi);

#line default
#line hidden
                EndContext();
                BeginContext(4567, 205, true);
                WriteLiteral("\r\n                                </p>\r\n                            </div>\r\n\r\n                            <div class=\"clearfix\"> </div>\r\n                            <br />\r\n                        </div>\r\n");
                EndContext();
#line 80 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(4803, 155, true);
            WriteLiteral("                    </div>\r\n                </div>\r\n            </div>\r\n            <nav class=\"navbar-default justify-content-center\">\r\n\r\n                ");
            EndContext();
            BeginContext(4959, 135, false);
#line 86 "C:\Users\Dell\Downloads\Github\ASPCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\HoiDap\Index.cshtml"
            Write(await this.Component.InvokeAsync("Pager", new { pagingList = this.Model, @searchString = @ViewBag.SearchString, @class = "page-item" }));

#line default
#line hidden
            EndContext();
            BeginContext(5094, 68, true);
            WriteLiteral("\r\n\r\n\r\n            </nav>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n\r\n\r\n");
            EndContext();
        }
예제 #14
0
 public BrandsController(ESHOPContext context)
 {
     _context = context;
 }
예제 #15
0
 public NhanViensController(ESHOPContext context)
 {
     _context = context;
 }
예제 #16
0
 public RegisterController(ESHOPContext context)
 {
     _context = context;
 }
예제 #17
0
 public ProductsController(ESHOPContext context)
 {
     _context = context;
 }
예제 #18
0
 public BannerQcsController(ESHOPContext context)
 {
     _context = context;
 }
예제 #19
0
 public CategoriesController(ESHOPContext context)
 {
     _context = context;
 }
예제 #20
0
        public void DeEnqueue()
        {
            try
            {
                //连接字符串
                string stq            = "Server=47.92.198.126;Database=ESHOP;user id=eshop;password=eshop123456;MultipleActiveResultSets=true";
                var    optionsBuilder = new DbContextOptionsBuilder <ESHOPContext>();
                optionsBuilder.UseSqlServer(stq);
                //using (var db = new ESHOPContext(optionsBuilder.Options))
                //{
                var             db          = new ESHOPContext(optionsBuilder.Options);
                TSeckillArticle articleInfo = null;  //存储如果存在修改需要查询库存
                bool            isdbDispose = false; //手动记录是否释放db上下文
                int             dequeueNum  = 0;
                while (true)
                {
                    if (isdbDispose)
                    {
                        db          = new ESHOPContext(optionsBuilder.Options);
                        isdbDispose = false;
                    }
                    ModelQueueParam data;
                    var             saved = false;//处理并发字段
                    lock (_locker)
                    {
                        //根据数据内容进行循环插入数据
                        if (GlobalParam.queue.TryDequeue(out data))
                        {
                        }
                    }
                    //存在下单人
                    if (data != null)
                    {
                        string userId           = data.userId;
                        string seckillArticleId = data.seckillArticleId;
                        //查询秒杀商品信息
                        articleInfo = db.TSeckillArticle.Where(u => u.Id == seckillArticleId).AsNoTracking().FirstOrDefault();
                        int articleStockNum = articleInfo?.ArticleStockNum ?? 0;
                        if (articleStockNum == 0)
                        {
                            //库存没有 等待信号
                            _wh.WaitOne();
                        }
                        else
                        {
                            //存在库存就进行消费库存
                            // articleInfo.ArticleStockNum -= 1;
                            dequeueNum++;
                            //同时添加订单信息
                            string   id      = Guid.NewGuid().ToString("N");
                            DateTime nowTime = DateTime.Now;
                            TOrder   order   = new TOrder();
                            order.Id              = id;
                            order.UserId          = userId;
                            order.ArticleId       = seckillArticleId;
                            order.OrderNum        = id;
                            order.OrderTotalPrice = 50;
                            order.AddTime         = nowTime;
                            order.UpdateTime      = nowTime;
                            order.PayTime         = nowTime;
                            order.DeliverTime     = nowTime;
                            order.FinishTime      = nowTime;
                            order.OrderStatus     = 3;
                            order.OrderPhone      = "12451554";
                            order.OrderAddress    = "地址地址地址";
                            order.OrderRemark     = "订单备注";
                            order.DelFlag         = 1;

                            //进行数据库真实操作
                            db.TOrder.Attach(order);
                            db.TOrder.Add(order);
                        }
                    }
                    else
                    {
                        //是否处理过数据
                        if (articleInfo != null)
                        {
                            articleInfo.ArticleStockNum -= dequeueNum;
                            //db.Entry(articleInfo).State = EntityState.Modified;
                            db.TSeckillArticle.Update(articleInfo);
                            //处理并发
                            while (!saved)
                            {
                                try
                                {
                                    db.SaveChanges();
                                    saved       = true;
                                    articleInfo = null;
                                    isdbDispose = true;
                                    dequeueNum  = 0;
                                }
                                catch (DbUpdateConcurrencyException ex)
                                {
                                    foreach (var entry in ex.Entries)
                                    {
                                        if (entry.Entity is TSeckillArticle)
                                        {
                                            var proposedValues = entry.CurrentValues;       //当前需要写入数据库的值
                                            var databaseValues = entry.GetDatabaseValues(); //数据库值
                                            entry.OriginalValues.SetValues(databaseValues);
                                        }
                                    }
                                }
                            }
                        }
                        //库存没有 等待信号
                        _wh.WaitOne();
                    }
                }
                //}
            }
            catch (Exception ex)
            {
            }
        }
예제 #21
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(0, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 2 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"

            ViewData["Title"] = "Index";
            Layout            = "~/Areas/Admin/Views/Shared/_Layout.cshtml";

#line default
#line hidden
            BeginContext(102, 79, true);
            WriteLiteral("\r\n<h3 class=\"alert alert-info\" style=\"font-size:25px;\">Thông tin voucher</h3>\r\n");
            EndContext();
            BeginContext(181, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "93df52f789c2455d92add696e6aed21a", async() => {
                BeginContext(241, 9, true);
                WriteLiteral("Thêm mới");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(254, 170, true);
            WriteLiteral("\r\n<div class=\"bootstrap-tab animated wow slideInUp\" data-wow-delay=\".5s\">\r\n    <div class=\"bs-example bs-example-tabs\" role=\"tabpanel\" data-example-id=\"togglable-tabs\">\r\n");
            EndContext();
#line 11 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"

            ESHOPContext   db             = new ESHOPContext();
            List <Voucher> voucher_moi    = db.Voucher.Where(p => p.NgayBatDau >= DateTime.Now && p.TrangThai == false).ToList();
            List <Voucher> voucher_hethan = db.Voucher.Where(p => p.NgayHetHan < DateTime.Now || p.TrangThai == true).ToList();


#line default
#line hidden
            BeginContext(751, 1310, true);
            WriteLiteral(@"        <ul id=""myTab"" class=""nav nav-tabs"" role=""tablist"">
            <li role=""presentation"" class=""active""><a href=""#home"" id=""home-tab"" role=""tab"" data-toggle=""tab"" aria-controls=""home"" aria-expanded=""true"">Voucher mới</a></li>
            <li role=""presentation""><a href=""#profile"" role=""tab"" id=""profile-tab"" data-toggle=""tab"" aria-controls=""profile"">Voucher hết hạn | Đã kích hoạt</a></li>
        </ul>
        <div id=""myTabContent"" class=""tab-content"">
            <div role=""tabpanel"" class=""tab-pane fade in active bootstrap-tab-text"" id=""home"" aria-labelledby=""home-tab"">
                <div class=""bootstrap-tab-text-grids"">
                    <table class=""table table-bordered"">
                        <tr style=""background-color:skyblue;color:white;"">
                            <th>Mã voucher</th>
                            <th>Nội dung</th>
                            <th>Ngày tạo</th>
                            <th>Ngày bắt đầu</th>
                            <th>Nga");
            WriteLiteral(@"̀y hết hạn</th>
                            <th>Giảm giá</th>
                            <th>Điều kiện</th>
                            <th>Ghi chú</th>
                            <th>Trạng thái</th>
                            <th></th>
                        </tr>
");
            EndContext();
#line 36 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
            foreach (var v in voucher_moi)
            {
#line default
#line hidden
                BeginContext(2145, 86, true);
                WriteLiteral("                        <tr>\r\n                            <td class=\"text text-info\">#");
                EndContext();
                BeginContext(2232, 6, false);
#line 39 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.MaVc);

#line default
#line hidden
                EndContext();
                BeginContext(2238, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2278, 9, false);
#line 40 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.NoiDung);

#line default
#line hidden
                EndContext();
                BeginContext(2287, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2327, 9, false);
#line 41 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.NgayTao);

#line default
#line hidden
                EndContext();
                BeginContext(2336, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2376, 12, false);
#line 42 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.NgayBatDau);

#line default
#line hidden
                EndContext();
                BeginContext(2388, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2428, 12, false);
#line 43 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.NgayHetHan);

#line default
#line hidden
                EndContext();
                BeginContext(2440, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2480, 9, false);
#line 44 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.GiamGia);

#line default
#line hidden
                EndContext();
                BeginContext(2489, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2529, 49, false);
#line 45 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(Convert.ToDouble(@v.TongTienDk).ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(2578, 7, true);
                WriteLiteral("</td>\r\n");
                EndContext();
#line 46 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"

                System.TimeSpan ngayconlai = Convert.ToDateTime(v.NgayBatDau).Subtract(DateTime.Now);
                if (ngayconlai.TotalHours >= 72)
                {
#line default
#line hidden
                    BeginContext(2837, 63, true);
                    WriteLiteral("                                    <td class=\"text text-info\">");
                    EndContext();
                    BeginContext(2901, 15, false);
#line 50 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                    Write(ngayconlai.Days);

#line default
#line hidden
                    EndContext();
                    BeginContext(2916, 7, true);
                    WriteLiteral(" ngày ");
                    EndContext();
                    BeginContext(2924, 16, false);
#line 50 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                    Write(ngayconlai.Hours);

#line default
#line hidden
                    EndContext();
                    BeginContext(2940, 12, true);
                    WriteLiteral(" giờ</td>\r\n");
                    EndContext();
#line 51 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                }
                else
                if (ngayconlai.TotalHours > 0)
                {
#line default
#line hidden
                    BeginContext(3124, 66, true);
                    WriteLiteral("                                    <td class=\"text text-warning\">");
                    EndContext();
                    BeginContext(3191, 15, false);
#line 55 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                    Write(ngayconlai.Days);

#line default
#line hidden
                    EndContext();
                    BeginContext(3206, 7, true);
                    WriteLiteral(" ngày ");
                    EndContext();
                    BeginContext(3214, 16, false);
#line 55 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                    Write(ngayconlai.Hours);

#line default
#line hidden
                    EndContext();
                    BeginContext(3230, 12, true);
                    WriteLiteral(" giờ</td>\r\n");
                    EndContext();
#line 56 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(3350, 81, true);
                    WriteLiteral("                                    <td class=\"text text-danger\">Quá hạn</td>\r\n");
                    EndContext();
#line 60 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                }



#line default
#line hidden
                BeginContext(3499, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 64 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"

                if (v.TrangThai == false)
                {
#line default
#line hidden
                    BeginContext(3627, 40, true);
                    WriteLiteral("                                    <td>");
                    EndContext();
                    BeginContext(3667, 98, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2b1d07e83b084ea8ba4f928a71850f66", async() => {
                        BeginContext(3742, 19, true);
                        WriteLiteral("Kích hoạt voucher");
                        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.Action = (string)__tagHelperAttribute_2.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                    if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                    {
                        throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-mavc", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                    }
                    BeginWriteTagHelperAttribute();
#line 67 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                    WriteLiteral(v.MaVc);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(3765, 7, true);
                    WriteLiteral("</td>\r\n");
                    EndContext();
#line 68 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                }


#line default
#line hidden
                BeginContext(3838, 32, true);
                WriteLiteral("                            <td>");
                EndContext();
                BeginContext(3870, 84, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "38a91d24be60402982f6f8301061ad49", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-mavc", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 70 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                WriteLiteral(v.MaVc);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3954, 3, true);
                WriteLiteral(" | ");
                EndContext();
                BeginContext(3957, 83, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53e26f3f9b324e7bba300ebbba06d30e", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __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-mavc", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 70 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                WriteLiteral(v.MaVc);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(4040, 39, true);
                WriteLiteral(" </td>\r\n                        </tr>\r\n");
                EndContext();
#line 72 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(4106, 966, true);
            WriteLiteral(@"                    </table>
                </div>
            </div>
            <div role=""tabpanel"" class=""tab-pane fade bootstrap-tab-text"" id=""profile"" aria-labelledby=""profile-tab"">
                <div class=""bootstrap-tab-text-grids"">
                    <div class=""bootstrap-tab-text-grids"">
                        <table class=""table table-bordered"">
                            <tr style=""background-color:skyblue;color:white;"">
                                <th>Mã voucher</th>
                                <th>Nội dung</th>
                                <th>Ngày tạo</th>
                                <th>Ngày bắt đầu</th>
                                <th>Ngày hết hạn</th>
                                <th>Giảm giá</th>
                                <th>Điều kiện</th>
                                <th>Trạng thái</th>
                                <th></th>
                            </tr>
");
            EndContext();
#line 91 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
            foreach (var v in voucher_hethan)
            {
#line default
#line hidden
                BeginContext(5167, 94, true);
                WriteLiteral("                            <tr>\r\n                                <td class=\"text text-info\">#");
                EndContext();
                BeginContext(5262, 6, false);
#line 94 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.MaVc);

#line default
#line hidden
                EndContext();
                BeginContext(5268, 43, true);
                WriteLiteral("</td>\r\n                                <td>");
                EndContext();
                BeginContext(5312, 9, false);
#line 95 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.NoiDung);

#line default
#line hidden
                EndContext();
                BeginContext(5321, 43, true);
                WriteLiteral("</td>\r\n                                <td>");
                EndContext();
                BeginContext(5365, 9, false);
#line 96 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.NgayTao);

#line default
#line hidden
                EndContext();
                BeginContext(5374, 43, true);
                WriteLiteral("</td>\r\n                                <td>");
                EndContext();
                BeginContext(5418, 12, false);
#line 97 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.NgayBatDau);

#line default
#line hidden
                EndContext();
                BeginContext(5430, 43, true);
                WriteLiteral("</td>\r\n                                <td>");
                EndContext();
                BeginContext(5474, 12, false);
#line 98 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.NgayHetHan);

#line default
#line hidden
                EndContext();
                BeginContext(5486, 43, true);
                WriteLiteral("</td>\r\n                                <td>");
                EndContext();
                BeginContext(5530, 9, false);
#line 99 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(v.GiamGia);

#line default
#line hidden
                EndContext();
                BeginContext(5539, 43, true);
                WriteLiteral("</td>\r\n                                <td>");
                EndContext();
                BeginContext(5583, 49, false);
#line 100 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                Write(Convert.ToDouble(@v.TongTienDk).ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(5632, 7, true);
                WriteLiteral("</td>\r\n");
                EndContext();
#line 101 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                if (DateTime.Now <= v.NgayHetHan)
                {
#line default
#line hidden
                    BeginContext(5742, 88, true);
                    WriteLiteral("                                    <td class=\"text text-primary\">Đã kích hoạt</td>\r\n");
                    EndContext();
#line 104 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(5938, 85, true);
                    WriteLiteral("                                    <td class=\"text text-danger\">Đã hết hạn</td>\r\n");
                    EndContext();
#line 108 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(6058, 36, true);
                WriteLiteral("                                <td>");
                EndContext();
                BeginContext(6094, 84, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c9dc307f6f8d4926a654dfd183d2d01d", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-mavc", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 109 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
                WriteLiteral(v.MaVc);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(6178, 42, true);
                WriteLiteral("</td>\r\n                            </tr>\r\n");
                EndContext();
#line 111 "C:\Users\Dell\Downloads\Github\ASPNETCore_Final\ASPCore_Final\ASPCore_Final\Areas\Admin\Views\Voucher\Index.cshtml"
            }

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