public NhaCungCapsController(TechWorld_2Context context)
 {
     _context = context;
 }
Пример #2
0
 public ThanhToanController(TechWorld_2Context ctx)
 {
     db = ctx;
 }
Пример #3
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"


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

#line default
#line hidden
            BeginContext(125, 456, true);
            WriteLiteral(@"
<style>
    .title-hh {       
        margin: 15px auto 0;
        letter-spacing: .1px;
        width: 77%;       
        font-weight: 500;
        max-height: 52px;      
        overflow: hidden;
        padding: 5px 0 0;       
        font-size: 17px;
        text-align: center;  
        font-family:serif;
    }
</style>
<!-- Home -->

<div class=""home"">
    <div class=""home_background parallax-window"" data-parallax=""scroll"">");
            EndContext();
            BeginContext(581, 41, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0dbf097c60bc4dbaa1174428229d6846", 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);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(622, 970, true);
            WriteLiteral(@"</div>
    <div class=""home_overlay""></div>
    <div class=""home_content d-flex flex-column align-items-center justify-content-center"">
        <h1 class=""home_title"" style=""font-family:serif;font-weight:bold;color:#495057c9;"">TECHWORLD</h1>
        <h2 class=""home_title"" style=""font-family:serif;font-weight:bold;font-size:57px;color:#495057c9;"">Thế Giới Công Nghệ Hiện Đại</h2>
    </div>
</div>

<!-- Shop -->

<div class=""shop"">
    <div class=""container"">
        <div class=""row"" style=""margin-left:-87px;"">
            <div class=""col-lg-3"" style=""max-width:20%;"">

                <!-- Shop Sidebar -->
                <div class=""shop_sidebar"">

                    <!--search price-->                    
                   
                    <!--categories-->
                    <div class=""sidebar_section"">
                        <div class=""sidebar_title"" style=""font-size:26px;color:#0e8ce4;font-family:serif;font-weight:bold;"">");
            EndContext();
            BeginContext(1592, 94, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a6b0be9efc464493aaf62cda88d8a42d", async() => {
                BeginContext(1669, 13, true);
                WriteLiteral("Loại Sản Phẩm");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__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(1686, 8, true);
            WriteLiteral("</div>\r\n");
            EndContext();
#line 48 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"

            TechWorld_2Context db      = new TechWorld_2Context();
            List <Loai>        ds_loai = db.Loai.ToList();


#line default
#line hidden
            BeginContext(1896, 98, true);
            WriteLiteral("                        <ul class=\"sidebar_categories\" style=\"margin-top:20px; font-size:18px;\">\r\n");
            EndContext();
#line 53 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
            foreach (var item in ds_loai)
            {
#line default
#line hidden
                BeginContext(2085, 64, true);
                WriteLiteral("                                <li style=\"margin-bottom:14px;\">");
                EndContext();
                BeginContext(2149, 94, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "383f530aa0d4459dabeb8f7be8f2ad9b", async() => {
                    BeginContext(2227, 12, false);
#line 55 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                    Write(item.TenLoai);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __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-loai", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 55 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteLiteral(item.MaLoai);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["loai"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-loai", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["loai"], 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(2243, 7, true);
                WriteLiteral("</li>\r\n");
                EndContext();
#line 56 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(2281, 1586, true);
            WriteLiteral(@"
                        </ul>
                    </div>

                </div>

            </div>

            <div class=""col-lg-9"" style=""max-width:80%;"">

                <!-- Shop Content -->

                <div class=""shop_content"" style=""width:1067px;"">
                    <div class=""shop_bar clearfix"">
                        <div class=""shop_product_count""></div>
                        <div class=""shop_sorting"">
                            <span>Sort by:</span>
                            <ul>
                                <li>
                                    <span class=""sorting_text"">highest rated<i class=""fas fa-chevron-down""></i></span>
                                    <ul>
                                        <li class=""shop_sorting_button"" data-isotope-option='{ ""sortBy"": ""original-order"" }'>highest rated</li>
                                        <li class=""shop_sorting_button"" data-isotope-option='{ ""sortBy"": ""name"" }'>name</li>
                    ");
            WriteLiteral(@"                    <li class=""shop_sorting_button"" data-isotope-option='{ ""sortBy"": ""price"" }'>price</li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>

                   

                    <div class=""product_panel panel active"">
                        <div class=""arrivals_slider slider"" style=""padding-left:37px;padding-right:150px;width:1278px;height:870px;"">

                            <!-- Product Item -->

");
            EndContext();
#line 94 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
            foreach (var item in Model)
            {
#line default
#line hidden
                BeginContext(3956, 512, true);
                WriteLiteral(@"                                <div class=""arrivals_slider_item"" style=""height:381px;"">
                                    <div class=""border_active"" style=""height:342px;""></div>
                                    <div class=""product_item is_new d-flex flex-column align-items-center justify-content-center text-center"" style=""width:240px;"">
                                        <div class=""product_image d-flex flex-column align-items-center justify-content-center"" style=""width:237px;height:190px;""><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 4468, "\"", 4513, 4);
                WriteAttributeValue("", 4475, "/san-pham/", 4475, 10, true);
#line 99 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 4485, item.MaHh, 4485, 10, false);

#line default
#line hidden
                WriteAttributeValue("", 4495, "/", 4495, 1, true);
#line 99 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 4496, item.TenHhSeoUrl, 4496, 17, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(4514, 1, true);
                WriteLiteral(">");
                EndContext();
                BeginContext(4515, 73, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "4db6633193e346ee86afd6bf0b93dfb8", 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("", 4525, "~/HangHoa/", 4525, 10, true);
#line 99 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                AddHtmlAttributeValue("", 4535, item.Hinh, 4535, 10, false);

#line default
#line hidden
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(4588, 83, true);
                WriteLiteral("</a></div>\r\n                                        <div class=\"product_content\">\r\n");
                EndContext();
#line 101 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"

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


#line default
#line hidden
                BeginContext(4865, 121, true);
                WriteLiteral("                                            <div class=\"product_price\" style=\"font-size:16px;margin-top:28px;color:red;\">");
                EndContext();
                BeginContext(4987, 24, false);
#line 104 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                Write(giaban.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(5011, 14, true);
                WriteLiteral(" đ<br /><span>");
                EndContext();
                BeginContext(5026, 29, false);
#line 104 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                Write(item.DonGia.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(5055, 90, true);
                WriteLiteral(" đ</span></div>\r\n                                            <div class=\"title-hh\"><div><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 5145, "\"", 5190, 4);
                WriteAttributeValue("", 5152, "/san-pham/", 5152, 10, true);
#line 105 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 5162, item.MaHh, 5162, 10, false);

#line default
#line hidden
                WriteAttributeValue("", 5172, "/", 5172, 1, true);
#line 105 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 5173, item.TenHhSeoUrl, 5173, 17, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(5191, 14, true);
                WriteLiteral(" tabindex=\"0\">");
                EndContext();
                BeginContext(5206, 10, false);
#line 105 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                Write(item.TenHh);

#line default
#line hidden
                EndContext();
                BeginContext(5216, 192, true);
                WriteLiteral("</a></div></div>\r\n                                            <div class=\"product_extras\">\r\n                                                <button class=\"product_cart_button\" type=\"submit\"><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 5408, "\"", 5453, 4);
                WriteAttributeValue("", 5415, "/san-pham/", 5415, 10, true);
#line 107 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 5425, item.MaHh, 5425, 10, false);

#line default
#line hidden
                WriteAttributeValue("", 5435, "/", 5435, 1, true);
#line 107 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 5436, item.TenHhSeoUrl, 5436, 17, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(5454, 252, true);
                WriteLiteral(" style=\"color:white;\">Xem Chi Tiết</a></button>\r\n\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"product_fav\"><i class=\"fas fa-heart\"></i></div>\r\n");
                EndContext();
#line 112 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"


                if (item.SoLuong > 10)
                {
                    double gg = item.GiamGia * 100;
                    if (gg == 0)
                    {
#line default
#line hidden
                        BeginContext(6061, 206, true);
                        WriteLiteral("                                                    <ul class=\"product_marks\">\r\n                                                        <li></li>\r\n                                                    </ul>\r\n");
                        EndContext();
#line 122 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                    }
                    else
                    {
#line default
#line hidden
                        BeginContext(6423, 204, true);
                        WriteLiteral("                                                    <ul class=\"product_marks\">\r\n                                                        <li class=\"product_mark product_new\" style=\"background-color:red;\">-");
                        EndContext();
                        BeginContext(6628, 2, false);
#line 126 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                        Write(gg);

#line default
#line hidden
                        EndContext();
                        BeginContext(6630, 67, true);
                        WriteLiteral("%</li>\r\n                                                    </ul>\r\n");
                        EndContext();
#line 128 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                    }
                }
                else if (item.SoLuong > 0)
                {
#line default
#line hidden
                    BeginContext(6914, 294, true);
                    WriteLiteral(@"                                                <ul class=""product_marks"">
                                                    <li class=""product_mark product_new"" style=""background-color:red; color:yellow;width:87px;"">Sắp hết hàng</li>
                                                </ul>
");
                    EndContext();
#line 135 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(7352, 295, true);
                    WriteLiteral(@"                                                <ul class=""product_marks"">
                                                    <li class=""product_mark product_new"" style=""background-color: #d5d8da;color:red; width:87px;"">Đã hết hàng</li>
                                                </ul>
");
                    EndContext();
#line 141 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                }


#line default
#line hidden
                BeginContext(7737, 124, true);
                WriteLiteral("                                    </div>\r\n                                    \r\n\r\n                                </div>\r\n");
                EndContext();
#line 147 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(7892, 1036, true);
            WriteLiteral(@"
                        </div>

                    </div>

                    <!-- Shop Page Navigation -->

                   

                </div>

            </div>
        </div>
    </div>
</div>

<!--Sản phẩm gợi ý-->
<div class=""viewed"">
    <div class=""container"">
        <div class=""row"">
            <div class=""col"">
                <div class=""viewed_title_container"">
                    <h3 class=""viewed_title"">Sản Phẩm Gợi Ý</h3>
                    <div class=""viewed_nav_container"">
                        <div class=""viewed_nav viewed_prev""><i class=""fas fa-chevron-left""></i></div>
                        <div class=""viewed_nav viewed_next""><i class=""fas fa-chevron-right""></i></div>
                    </div>
                </div>

                <div class=""viewed_slider_container"">

                    <!-- Recently Viewed Slider -->

                    <div class=""owl-carousel owl-theme viewed_slider"">

                        <!-- Recently Viewe");
            WriteLiteral("d Item -->\r\n");
            EndContext();
#line 184 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"

            List <HangHoa> hh    = db.HangHoa.ToList();
            Random         rd    = new Random();
            List <HangHoa> hh_rd = hh.OrderBy(x => rd.Next()).ToList();


#line default
#line hidden
            BeginContext(9195, 24, true);
            WriteLiteral("                        ");
            EndContext();
#line 189 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
            foreach (var item in hh_rd)
            {
#line default
#line hidden
                BeginContext(9276, 257, true);
                WriteLiteral(@"                            <div class=""owl-item"">
                                <div class=""viewed_item discount d-flex flex-column align-items-center justify-content-center text-center"">
                                    <div class=""viewed_image""><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 9533, "\"", 9578, 4);
                WriteAttributeValue("", 9540, "/san-pham/", 9540, 10, true);
#line 193 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 9550, item.MaHh, 9550, 10, false);

#line default
#line hidden
                WriteAttributeValue("", 9560, "/", 9560, 1, true);
#line 193 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 9561, item.TenHhSeoUrl, 9561, 17, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(9579, 5, true);
                WriteLiteral("></a>");
                EndContext();
                BeginContext(9584, 39, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "1bb5714dbaf745acbf28ab8d583d8bd5", 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("", 9594, "~/HangHoa/", 9594, 10, true);
#line 193 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                AddHtmlAttributeValue("", 9604, item.Hinh, 9604, 10, false);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(9623, 86, true);
                WriteLiteral("</div>\r\n                                    <div class=\"viewed_content text-center\">\r\n");
                EndContext();
#line 195 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"

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


#line default
#line hidden
                BeginContext(9891, 66, true);
                WriteLiteral("                                        <div class=\"viewed_price\">");
                EndContext();
                BeginContext(9958, 24, false);
#line 198 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                Write(giaban.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(9982, 14, true);
                WriteLiteral(" đ<br /><span>");
                EndContext();
                BeginContext(9997, 29, false);
#line 198 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                Write(item.DonGia.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(10026, 154, true);
                WriteLiteral(" đ</span></div>\r\n                                        <div class=\"viewed_name\" style=\"overflow:hidden; width:77%;max-height:40px;text-align:center;\"><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 10180, "\"", 10225, 4);
                WriteAttributeValue("", 10187, "/san-pham/", 10187, 10, true);
#line 199 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 10197, item.MaHh, 10197, 10, false);

#line default
#line hidden
                WriteAttributeValue("", 10207, "/", 10207, 1, true);
#line 199 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                WriteAttributeValue("", 10208, item.TenHhSeoUrl, 10208, 17, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(10226, 1, true);
                WriteLiteral(">");
                EndContext();
                BeginContext(10228, 10, false);
#line 199 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                Write(item.TenHh);

#line default
#line hidden
                EndContext();
                BeginContext(10238, 56, true);
                WriteLiteral("</a></div>\r\n                                    </div>\r\n");
                EndContext();
#line 201 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"


                if (item.SoLuong > 10)
                {
                    double gg = item.GiamGia * 100;
                    if (gg == 0)
                    {
#line default
#line hidden
                        BeginContext(10625, 191, true);
                        WriteLiteral("                                                <ul class=\"item_marks\">\r\n                                                    <li></li>\r\n                                                </ul>\r\n");
                        EndContext();
#line 211 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                    }
                    else
                    {
#line default
#line hidden
                        BeginContext(10960, 162, true);
                        WriteLiteral("                                                <ul class=\"item_marks\">\r\n                                                    <li class=\"item_mark item_discount\">-");
                        EndContext();
                        BeginContext(11123, 2, false);
#line 215 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                        Write(gg);

#line default
#line hidden
                        EndContext();
                        BeginContext(11125, 63, true);
                        WriteLiteral("%</li>\r\n                                                </ul>\r\n");
                        EndContext();
#line 217 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                    }
                }
                else if (item.SoLuong > 0)
                {
#line default
#line hidden
                    BeginContext(11391, 256, true);
                    WriteLiteral(@"                                            <ul class=""item_marks"">
                                                <li class=""item_mark item_discount"" style=""color:yellow;width:67px;"">Sắp hết hàng</li>
                                            </ul>
");
                    EndContext();
#line 225 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(11779, 277, true);
                    WriteLiteral(@"                                            <ul class=""item_marks"">
                                                <li class=""item_mark item_discount"" style=""background-color:#d5d8da;color:red;width:67px;"">Đã hết hàng</li>
                                            </ul>
");
                    EndContext();
#line 231 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
                }


#line default
#line hidden
                BeginContext(12138, 78, true);
                WriteLiteral("\r\n                                </div>\r\n                            </div>\r\n");
                EndContext();
#line 236 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\HangHoa\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(12243, 112, true);
            WriteLiteral("\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n");
            EndContext();
        }
Пример #4
0
 public HangHoaController(TechWorld_2Context ctx)
 {
     db = ctx;
 }
Пример #5
0
 public KhachHangsController(TechWorld_2Context context)
 {
     _context = context;
 }
Пример #6
0
 public MailChimpController(TechWorld_2Context ctx)
 {
     db = ctx;
 }
Пример #7
0
 public NhanViensController(TechWorld_2Context context)
 {
     _context = context;
 }
Пример #8
0
 public LoginController(TechWorld_2Context ctx)
 {
     db = ctx;
 }
Пример #9
0
 public BlogController(TechWorld_2Context ctx)
 {
     db = ctx;
 }
Пример #10
0
 public RegisterController(TechWorld_2Context ctx)
 {
     db = ctx;
 }
Пример #11
0
 public PaypalController(TechWorld_2Context ctx)
 {
     db = ctx;
 }
Пример #12
0
 public HangHoasController(TechWorld_2Context context)
 {
     _context = context;
 }
Пример #13
0
 public GioHangController(TechWorld_2Context ctx)
 {
     db = ctx;
 }
Пример #14
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\Index.cshtml"

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

#line default
#line hidden
            BeginContext(134, 111, true);
            WriteLiteral("\r\n<!-- Home -->\r\n\r\n<div class=\"home\">\r\n    <div class=\"home_background parallax-window\" data-parallax=\"scroll\">");
            EndContext();
            BeginContext(245, 41, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "03bdec7c76c6439fb91eb6ef94a8922a", 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);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(286, 516, true);
            WriteLiteral(@"</div>
    <div class=""home_overlay""></div>
    <div class=""home_content d-flex flex-column align-items-center justify-content-center"">
        <h2 class=""home_title"" style=""font-family:serif;font-weight:bold;font-size:67px;color:#495057c9;"">Technological Blog</h2>
    </div>
</div>

<!-- Blog -->

<div class=""blog"">
    <div class=""container"">
        <div class=""row"">
            <div class=""col"">
                <div class=""blog_posts d-flex flex-row align-items-start justify-content-between"">
");
            EndContext();
#line 24 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\Index.cshtml"

            TechWorld_2Context db   = new TechWorld_2Context();
            List <Blog>        blog = db.Blog.ToList();


#line default
#line hidden
            BeginContext(985, 20, true);
            WriteLiteral("                    ");
            EndContext();
#line 28 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\Index.cshtml"
            foreach (var item in blog)
            {
#line default
#line hidden
                BeginContext(1057, 145, true);
                WriteLiteral("                        <!-- Blog post -->\r\n                        <div class=\"blog_post\">\r\n                            <div class=\"blog_image\">");
                EndContext();
                BeginContext(1202, 37, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d88836e502da4177bbaef4c5ee865915", 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("", 1212, "~/images/Blog/", 1212, 14, true);
#line 32 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\Index.cshtml"
                AddHtmlAttributeValue("", 1226, item.Hinh, 1226, 10, false);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1239, 59, true);
                WriteLiteral("</div>\r\n                            <div class=\"blog_text\">");
                EndContext();
                BeginContext(1299, 11, false);
#line 33 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\Index.cshtml"
                Write(item.TieuDe);

#line default
#line hidden
                EndContext();
                BeginContext(1310, 91, true);
                WriteLiteral("</div>\r\n                            \r\n                            <div class=\"blog_button\">");
                EndContext();
                BeginContext(1401, 94, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f0ab1e2c01174794a204fe4eb52e88af", async() => {
                    BeginContext(1479, 12, true);
                    WriteLiteral("Tiếp tục đọc");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __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-matt", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 35 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\Index.cshtml"
                WriteLiteral(item.MaTt);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["matt"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-matt", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["matt"], 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(1495, 97, true);
                WriteLiteral("</div>\r\n                                                       \r\n                        </div>\r\n");
                EndContext();
#line 38 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(1615, 88, true);
            WriteLiteral("\r\n\r\n                </div>\r\n            </div>\r\n\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n");
            EndContext();
        }
Пример #15
0
 public LoaisController(TechWorld_2Context context)
 {
     _context = context;
 }
Пример #16
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"

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

#line default
#line hidden
            BeginContext(128, 128, true);
            WriteLiteral("\r\n<!-- Home -->\r\n\r\n<div class=\"home\">\r\n    <div class=\"home_background parallax-window\" data-parallax=\"scroll\" data-speed=\"0.8\">");
            EndContext();
            BeginContext(256, 82, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "a5eb7304a6884a9a96de476e63a290b5", 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("", 266, "~/images/Blog/", 266, 14, true);
#line 10 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
            AddHtmlAttributeValue("", 280, Model.Hinh, 280, 11, 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();
            BeginContext(338, 225, true);
            WriteLiteral("</div>\r\n</div>\r\n\r\n<!-- Single Blog Post -->\r\n\r\n<div class=\"single_post\">\r\n    <div class=\"container\">\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-8 offset-lg-2\">\r\n                <div class=\"single_post_title\">");
            EndContext();
            BeginContext(564, 12, false);
#line 19 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
            Write(Model.TieuDe);

#line default
#line hidden
            EndContext();
            BeginContext(576, 79, true);
            WriteLiteral("</div>\r\n                <div class=\"single_post_text\">\r\n                    <p>");
            EndContext();
            BeginContext(656, 14, false);
#line 21 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
            Write(Model.NoiDung1);

#line default
#line hidden
            EndContext();
            BeginContext(670, 120, true);
            WriteLiteral("</p>\r\n                    <div class=\"single_post_quote text-center\">\r\n                        <div class=\"quote_image\">");
            EndContext();
            BeginContext(790, 37, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "53018662364c49f8b8c6decafe96bde6", 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_2);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(827, 56, true);
            WriteLiteral("</div>\r\n                        <div class=\"quote_text\">");
            EndContext();
            BeginContext(884, 14, false);
#line 24 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
            Write(Model.NoiDung2);

#line default
#line hidden
            EndContext();
            BeginContext(898, 126, true);
            WriteLiteral("</div>\r\n                        <div class=\"quote_name\">Liam Neeson</div>\r\n                    </div>\r\n                    <p>");
            EndContext();
            BeginContext(1025, 14, false);
#line 27 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
            Write(Model.NoiDung3);

#line default
#line hidden
            EndContext();
            BeginContext(1039, 338, true);
            WriteLiteral(@"</p>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- Blog Posts -->

<div class=""blog"">
    <div class=""container"">
        <div class=""row"">
            <div class=""col"">
                <div class=""blog_posts d-flex flex-row align-items-start justify-content-between"">
                  
");
            EndContext();
#line 42 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"

            TechWorld_2Context db   = new TechWorld_2Context();
            List <Blog>        blog = db.Blog.Take(3).ToList();


#line default
#line hidden
            BeginContext(1568, 20, true);
            WriteLiteral("                    ");
            EndContext();
#line 46 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
            foreach (var item in blog)
            {
#line default
#line hidden
                BeginContext(1640, 145, true);
                WriteLiteral("                        <!-- Blog post -->\r\n                        <div class=\"blog_post\">\r\n                            <div class=\"blog_image\">");
                EndContext();
                BeginContext(1785, 44, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4d00de43a2a94f7eb49a26639ab64521", 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("", 1795, "~/images/Blog/", 1795, 14, true);
#line 50 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
                AddHtmlAttributeValue("", 1809, item.Hinh, 1809, 10, false);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1829, 59, true);
                WriteLiteral("</div>\r\n                            <div class=\"blog_text\">");
                EndContext();
                BeginContext(1889, 11, false);
#line 51 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
                Write(item.TieuDe);

#line default
#line hidden
                EndContext();
                BeginContext(1900, 63, true);
                WriteLiteral("</div>\r\n\r\n                            <div class=\"blog_button\">");
                EndContext();
                BeginContext(1963, 94, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "73ed752e106b4770bd434b52be1cb297", async() => {
                    BeginContext(2041, 12, true);
                    WriteLiteral("Tiếp tục đọc");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __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-matt", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 53 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
                WriteLiteral(item.MaTt);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["matt"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-matt", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["matt"], 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(2057, 42, true);
                WriteLiteral("</div>\r\n\r\n                        </div>\r\n");
                EndContext();
#line 56 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\Blog\BlogDetails.cshtml"
            }

#line default
#line hidden
            BeginContext(2122, 84, true);
            WriteLiteral("\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n");
            EndContext();
        }
Пример #17
0
 public HoaDonsController(TechWorld_2Context context)
 {
     _context = context;
 }
Пример #18
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"

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

#line default
#line hidden
            BeginContext(132, 17, true);
            WriteLiteral("\r\n<!-- Cart -->\r\n");
            EndContext();
            BeginContext(149, 523, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c4751ec3a9fa487caa52a9d4a8ec42bc", async() => {
                BeginContext(155, 510, true);
                WriteLiteral(@"
    <style>
        .close {
            background: url('../images/close_1.png') no-repeat 0px 0px;
            cursor: pointer;
            width: 28px;
            height: 28px;
            position: absolute;
            right: 15px;
            top: -13px;
            -webkit-transition: color 0.2s ease-in-out;
            -moz-transition: color 0.2s ease-in-out;
            -o-transition: color 0.2s ease-in-out;
            transition: color 0.2s ease-in-out;
        }
    </style>
");
                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(672, 314, true);
            WriteLiteral(@"

<div class=""cart_section"">
    <div class=""container"">
        <div class=""row"">
            <div class=""col-lg-12 offset-lg-1"">
                <div class=""cart_container"">
                    <div class=""cart_title"" style=""font-family:serif;font-weight:bolder;font-size:38px;"">Giỏ Hàng Của Bạn</div>

");
            EndContext();
#line 33 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
            if (Context.Session.Get <List <CartItem> >("GioHang") != null)
            {
#line default
#line hidden
#line 35 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                if (Model != null)
                {
#line default
#line hidden
                    BeginContext(1163, 2149, true);
                    WriteLiteral(@"                            <div class=""cart_items"">
                                <ul class=""cart_list"" style=""width: 1100px;"">

                                    <li class=""cart_item clearfix"">
                                        <div class=""cart_item_image"" style=""height:0px;width:100px;""></div>
                                        <div class=""cart_item_info d-flex flex-md-row flex-column justify-content-between"" style=""float:right;"">
                                            <div class=""cart_item_name cart_info_col"">
                                                <div class=""cart_item_title"" style=""width:238px;font-size:18px;font-weight:bold;color:dimgray;"">Tên sản phẩm</div>
                                            </div>
                                            <div class=""cart_item_color cart_info_col"">
                                                <div class=""cart_item_title"" style=""width:120px;font-size:18px;font-weight:bold;color:dimgray;margin-left:77px;"">Số lượng</d");
                    WriteLiteral(@"iv>
                                            </div>
                                            <div class=""cart_item_quantity cart_info_col"">
                                                <div class=""cart_item_title"" style=""width:170px;padding-left:50px;font-size:18px;font-weight:bold;color:dimgray;margin-left:7px;"">Giá bán</div>
                                            </div>
                                            <div class=""cart_item_quantity cart_info_col"">
                                                <div class=""cart_item_title"" style=""width:200px;padding-left:50px;font-size:18px;font-weight:bold;color:dimgray;"">Thành tiền</div>
                                            </div>
                                            <div class=""cart_item_price cart_info_col"">
                                                <div class=""cart_item_title"" style=""width:80px;padding-right:50px;font-size:18px;font-weight:bold;color:dimgray;"">Xóa</div>
                                            ");
                    WriteLiteral("</div>\r\n                                        </div>\r\n                                    </li>\r\n\r\n");
                    EndContext();
#line 61 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"

                    double tongtien = 0;



#line default
#line hidden
                    BeginContext(3455, 36, true);
                    WriteLiteral("                                    ");
                    EndContext();
#line 65 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                    foreach (var item in Model)
                    {
#line default
#line hidden
                        BeginContext(3560, 169, true);
                        WriteLiteral("                                        <li class=\"cart_item clearfix\">\r\n                                            <div class=\"cart_item_image\" style=\"width:100px;\"><a");
                        EndContext();
                        BeginWriteAttribute("href", " href=\"", 3729, "\"", 3784, 4);
                        WriteAttributeValue("", 3736, "/san-pham/", 3736, 10, true);
#line 68 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        WriteAttributeValue("", 3746, item.MaHh, 3746, 10, false);

#line default
#line hidden
                        WriteAttributeValue("", 3756, "/", 3756, 1, true);
#line 68 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        WriteAttributeValue("", 3757, item.TenHh.ToUrlFriendly(), 3757, 27, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(3785, 1, true);
                        WriteLiteral(">");
                        EndContext();
                        BeginContext(3786, 60, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "f49c0c00a08d49789d146e097577bd15", 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("", 3796, "~/HangHoa/", 3796, 10, true);
#line 68 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        AddHtmlAttributeValue("", 3806, item.Hinh, 3806, 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();
                        BeginContext(3846, 353, true);
                        WriteLiteral(@"</a></div>
                                            <div class=""cart_item_info d-flex flex-md-row flex-column justify-content-between"">
                                                <div class=""cart_item_name cart_info_col"">
                                                    <div class=""cart_item_text"" style=""width:300px; margin-left: 9.53%"">");
                        EndContext();
                        BeginContext(4200, 10, false);
#line 71 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        Write(item.TenHh);

#line default
#line hidden
                        EndContext();
                        BeginContext(4210, 539, true);
                        WriteLiteral(@"</div>
                                                </div>
                                                <div class=""cart_item_quantity cart_info_col"">
                                                    <div class=""cart_item_text"" style=""width:60px;"">
                                                        <div class=""quantity"">
                                                            <div class=""quantity-select"">
                                                                <input type=""hidden"" id=""mahh"" name=""mahh""");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 4749, "\"", 4767, 1);
#line 77 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        WriteAttributeValue("", 4757, item.MaHh, 4757, 10, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(4768, 159, true);
                        WriteLiteral(" />\r\n                                                                <span style=\"height:35px; width:45px; text-align:center; color:dimgray;margin-left:28px;\">");
                        EndContext();
                        BeginContext(4928, 12, false);
#line 78 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        Write(item.SoLuong);

#line default
#line hidden
                        EndContext();
                        BeginContext(4940, 743, true);
                        WriteLiteral(@"</span>
                                                                <!--<input class=""entry value"" style=""height:35px; width:45px; text-align:center; background-color:lightgray; color:dimgray;"" type=""number"" min=""1"" step=""1"" id=""soluongmoi"" name=""soluongmoi"" value="""" />-->
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class=""cart_item_price cart_info_col"">
                                                    <div class=""cart_item_text"" style=""width:170px;margin-right:-26px;"">");
                        EndContext();
                        BeginContext(5684, 29, false);
#line 86 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        Write(item.GiaBan.ToString("#,##0"));

#line default
#line hidden
                        EndContext();
                        BeginContext(5713, 281, true);
                        WriteLiteral(@" đ</div>
                                                </div>
                                                <div class=""cart_item_price cart_info_col"">

                                                    <div class=""cart_item_text"" style=""width:200px;margin-right:-28px;"">");
                        EndContext();
                        BeginContext(5995, 32, false);
#line 90 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        Write(item.ThanhTien.ToString("#,##0"));

#line default
#line hidden
                        EndContext();
                        BeginContext(6027, 419, true);
                        WriteLiteral(@" đ</div>
                                                </div>
                                                <div class=""cart_item_total cart_info_col"">
                                                    <div class=""cart_item_text"" style=""width:80px;margin-right:-67px"">
                                                        <div class=""rem"">
                                                            <div>");
                        EndContext();
                        BeginContext(6446, 101, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dd0355f84f2d462cb424a563fa5ff871", 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_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_clr", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                        }
                        BeginWriteTagHelperAttribute();
#line 95 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        WriteLiteral(item.MaHh);

#line default
#line hidden
                        __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                        __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh_clr"] = __tagHelperStringValueBuffer;
                        __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-mahh_clr", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh_clr"], 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(6547, 289, true);
                        WriteLiteral(@"  </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </li>
");
                        EndContext();
#line 101 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        tongtien += item.ThanhTien;
                    }

#line default
#line hidden
                    BeginContext(6946, 79, true);
                    WriteLiteral("\r\n\r\n                                </ul>\r\n                            </div>\r\n");
                    EndContext();
                    BeginContext(7029, 364, true);
                    WriteLiteral(@"                            <div class=""order_total"" style=""width:1100px;height:200px;"">
                                <div class=""order_total_content text-md-right"">
                                    <div class=""order_total_title"">TỔNG TIỀN:</div>
                                    <div class=""order_total_amount"" style=""width:247px;padding-right:57px;"">");
                    EndContext();
                    BeginContext(7394, 26, false);
#line 113 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                    Write(tongtien.ToString("#,##0"));

#line default
#line hidden
                    EndContext();
                    BeginContext(7420, 380, true);
                    WriteLiteral(@" đ</div>
                                </div>
                                <div class=""order_total_content text-md-right"">
                                    <div class=""order_total_title"">PHÍ VẬN CHUYỂN:</div>
                                    <div class=""order_total_amount"" style=""width:247px;padding-right:57px;"">0 đ</div>
                                </div>
");
                    EndContext();
#line 119 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"

                    double tonghoadon = tongtien + 0;


#line default
#line hidden
                    BeginContext(7942, 277, true);
                    WriteLiteral(@"                                <div class=""order_total_content text-md-right"">
                                    <div class=""order_total_title"">TỔNG HÓA ĐƠN:</div>
                                    <div class=""order_total_amount"" style=""width:247px;padding-right:57px;"">");
                    EndContext();
                    BeginContext(8220, 28, false);
#line 124 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                    Write(tonghoadon.ToString("#,##0"));

#line default
#line hidden
                    EndContext();
                    BeginContext(8248, 86, true);
                    WriteLiteral(" đ</div>\r\n                                </div>\r\n                            </div>\r\n");
                    EndContext();
#line 127 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(8369, 24, true);
                WriteLiteral("                        ");
                EndContext();
                BeginContext(8393, 337, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7b2c704a68d946c7a9c77c61daa4ad6e", async() => {
                    BeginContext(8459, 264, true);
                    WriteLiteral(@"
                            <div class=""cart_buttons"" style=""margin-right:115px;"">
                                <button type=""submit"" class=""button cart_button_checkout"">Đi đến thanh toán</button>
                            </div>
                        ");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(8730, 26, true);
                WriteLiteral("\r\n                        ");
                EndContext();
                BeginContext(8756, 446, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3d165e40408a43c58c2acad80bc376d7", async() => {
                    BeginContext(8881, 314, true);
                    WriteLiteral(@"
                            <div class=""cart_buttons"">
                                <button type=""submit"" class=""button cart_button_checkout"" style=""color: rgba(0,0,0,0.5);background: #FFFFFF;border: solid 1px #b2b2b2;"">Tiếp tục mua hàng</button>
                            </div>
                        ");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(9202, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 142 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(9276, 184, true);
                WriteLiteral("                        <div class=\"alert alert-danger\" style=\"text-align:center;font-size:17px;font-family:Arial;\">\r\n                            Không có sản phẩm nào trong giỏ hàng. ");
                EndContext();
                BeginContext(9460, 117, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6e826d448f2c44498986d60acbebebfa", async() => {
                    BeginContext(9554, 19, true);
                    WriteLiteral("Đến trang mua hàng!");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(9577, 34, true);
                WriteLiteral("\r\n                        </div>\r\n");
                EndContext();
#line 148 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(9634, 958, true);
            WriteLiteral(@"

                </div>
            </div>
        </div>
    </div>
</div>


<!--Sản phẩm gợi ý-->
<div class=""viewed"">
    <div class=""container"">
        <div class=""row"">
            <div class=""col"">
                <div class=""viewed_title_container"">
                    <h3 class=""viewed_title"" style=""font-family:serif; font-weight:bold;font-size:30px;"">Sản Phẩm Gợi Ý</h3>
                    <div class=""viewed_nav_container"">
                        <div class=""viewed_nav viewed_prev""><i class=""fas fa-chevron-left""></i></div>
                        <div class=""viewed_nav viewed_next""><i class=""fas fa-chevron-right""></i></div>
                    </div>
                </div>

                <div class=""viewed_slider_container"">

                    <!-- Recently Viewed Slider -->

                    <div class=""owl-carousel owl-theme viewed_slider"">

                        <!-- Recently Viewed Item -->
");
            EndContext();
#line 178 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"

            TechWorld_2Context db    = new TechWorld_2Context();
            List <HangHoa>     hh    = db.HangHoa.ToList();
            Random             rd    = new Random();
            List <HangHoa>     hh_rd = hh.OrderBy(x => rd.Next()).ToList();


#line default
#line hidden
            BeginContext(10938, 24, true);
            WriteLiteral("                        ");
            EndContext();
#line 184 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
            foreach (var item in hh_rd)
            {
#line default
#line hidden
                BeginContext(11019, 279, true);
                WriteLiteral(@"                            <div class=""owl-item"">
                                <div class=""viewed_item discount d-flex flex-column align-items-center justify-content-center text-center"" style=""height:270px;"">
                                    <div class=""viewed_image""><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 11298, "\"", 11343, 4);
                WriteAttributeValue("", 11305, "/san-pham/", 11305, 10, true);
#line 188 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                WriteAttributeValue("", 11315, item.MaHh, 11315, 10, false);

#line default
#line hidden
                WriteAttributeValue("", 11325, "/", 11325, 1, true);
#line 188 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                WriteAttributeValue("", 11326, item.TenHhSeoUrl, 11326, 17, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(11344, 1, true);
                WriteLiteral(">");
                EndContext();
                BeginContext(11345, 39, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "ef5b57f806934fdda4bb3e8af727884a", 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("", 11355, "~/HangHoa/", 11355, 10, true);
#line 188 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                AddHtmlAttributeValue("", 11365, item.Hinh, 11365, 10, false);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(11384, 90, true);
                WriteLiteral("</a></div>\r\n                                    <div class=\"viewed_content text-center\">\r\n");
                EndContext();
#line 190 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"

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


#line default
#line hidden
                BeginContext(11656, 66, true);
                WriteLiteral("                                        <div class=\"viewed_price\">");
                EndContext();
                BeginContext(11723, 24, false);
#line 193 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                Write(giaban.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(11747, 14, true);
                WriteLiteral(" đ<br /><span>");
                EndContext();
                BeginContext(11762, 29, false);
#line 193 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                Write(item.DonGia.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(11791, 154, true);
                WriteLiteral(" đ</span></div>\r\n                                        <div class=\"viewed_name\" style=\"overflow:hidden; width:77%;max-height:40px;text-align:center;\"><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 11945, "\"", 11990, 4);
                WriteAttributeValue("", 11952, "/san-pham/", 11952, 10, true);
#line 194 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                WriteAttributeValue("", 11962, item.MaHh, 11962, 10, false);

#line default
#line hidden
                WriteAttributeValue("", 11972, "/", 11972, 1, true);
#line 194 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                WriteAttributeValue("", 11973, item.TenHhSeoUrl, 11973, 17, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(11991, 1, true);
                WriteLiteral(">");
                EndContext();
                BeginContext(11993, 10, false);
#line 194 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                Write(item.TenHh);

#line default
#line hidden
                EndContext();
                BeginContext(12003, 56, true);
                WriteLiteral("</a></div>\r\n                                    </div>\r\n");
                EndContext();
#line 196 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"


                if (item.SoLuong > 10)
                {
                    double gg = item.GiamGia * 100;
                    if (gg == 0)
                    {
#line default
#line hidden
                        BeginContext(12390, 191, true);
                        WriteLiteral("                                                <ul class=\"item_marks\">\r\n                                                    <li></li>\r\n                                                </ul>\r\n");
                        EndContext();
#line 206 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                    }
                    else
                    {
#line default
#line hidden
                        BeginContext(12725, 162, true);
                        WriteLiteral("                                                <ul class=\"item_marks\">\r\n                                                    <li class=\"item_mark item_discount\">-");
                        EndContext();
                        BeginContext(12888, 2, false);
#line 210 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                        Write(gg);

#line default
#line hidden
                        EndContext();
                        BeginContext(12890, 63, true);
                        WriteLiteral("%</li>\r\n                                                </ul>\r\n");
                        EndContext();
#line 212 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                    }
                }
                else if (item.SoLuong > 0)
                {
#line default
#line hidden
                    BeginContext(13156, 256, true);
                    WriteLiteral(@"                                            <ul class=""item_marks"">
                                                <li class=""item_mark item_discount"" style=""color:yellow;width:67px;"">Sắp hết hàng</li>
                                            </ul>
");
                    EndContext();
#line 220 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(13544, 277, true);
                    WriteLiteral(@"                                            <ul class=""item_marks"">
                                                <li class=""item_mark item_discount"" style=""background-color:#d5d8da;color:red;width:67px;"">Đã hết hàng</li>
                                            </ul>
");
                    EndContext();
#line 226 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
                }


#line default
#line hidden
                BeginContext(13903, 78, true);
                WriteLiteral("\r\n                                </div>\r\n                            </div>\r\n");
                EndContext();
#line 231 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\GioHang\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(14008, 114, true);
            WriteLiteral("\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n\r\n");
            EndContext();
        }
Пример #19
0
 public LienHeController(TechWorld_2Context ctx)
 {
     db = ctx;
 }
Пример #20
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\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"

            ViewData["Title"] = "Print";
            Layout            = "~/Views/Shared/_Layout.cshtml";

#line default
#line hidden
            BeginContext(90, 2502, true);
            WriteLiteral(@"
<style>
    .body-print {
        margin: 0;
        background-color: #dad8d84d;
    }

    * {
        box-sizing: border-box;
    }

    .title-dskh {
        text-align: center;
        font-size: 24px;
        font-weight: bold;
        padding-top: 10px;
    }

    .page {
        width: 21cm; /*chiều rộng của trang*/
        min-height: 297mm;
        padding-top: 2.5cm; /*khoảng cách nội dung so với khung trang*/
        padding-bottom: 2.5cm;
        margin: auto; /*cho trang ở giữa màn hình*/
        background: white;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /*đưởng viên của trang*/
        padding-left: -15px;
        padding-right: 16px;
    }

    .header {
        overflow: hidden;
    }

    .company {
        text-transform: uppercase;
        background-color: #FFFFFF;
        float: right;
        font-size: 13px;
        margin-right: 48px;
    }

    .th-print {
        text-align: center;
    }

    .footer-left {
        text-align:");
            WriteLiteral(@" center;
        text-transform: uppercase;
        padding-top: 24px;
        width: 50%;
        float: left;
        font-size: 12px;
    }

    .footer-right {
        text-align: center;
        text-transform: uppercase;
        padding-top: 24px;
        width: 50%;
        font-size: 12px;
        float: right;
    }

    .TableData {
        border-collapse: collapse;
        font-family: Verdana, Arial, Helvetica, sans-serif;
    }

        .TableData TH {
            background: rgba(0,0,255,0.1);
            border: solid 1px #ccc;
        }

        .TableData TR {
            height: 24px;
            border: 1px solid #d3d3d3;
        }

            .TableData TR TD {
                padding-right: 2px;
                padding-left: 2px;
                border: 1px solid #d3d3d3;
            }

        .TableData .tong {
            text-align: right;
            font-weight: bold;
            text-transform: uppercase; /*biến đổi thành chữ hoa*/
      ");
            WriteLiteral(@"      padding-right: 4px;
        }
</style>


<!-- BEGIN CONTENT -->
<div class=""page-content-wrapper"">
    <div class=""page-content"">


        <!-- BEGIN PAGE HEADER-->
        <h3 class=""page-title"">
            Dashboard <small>reports & statistics</small>
        </h3>
        <div class=""page-bar"">
            <ul class=""page-breadcrumb"">
                <li>
                    <i class=""fa fa-home""></i>
                    ");
            EndContext();
            BeginContext(2592, 62, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "80dd285ac8bb4afbb5f163d39f61d5b4", async() => {
                BeginContext(2641, 9, true);
                WriteLiteral("Trang chủ");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__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(2654, 122, true);
            WriteLiteral("\r\n                    <i class=\"fa fa-angle-right\"></i>\r\n                </li>\r\n                <li>\r\n                    ");
            EndContext();
            BeginContext(2776, 73, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "788793f624a140a1b5d031c259bc21d0", async() => {
                BeginContext(2828, 17, true);
                WriteLiteral("Export & Subcride");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            __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(2849, 611, true);
            WriteLiteral(@"
                </li>
            </ul>
            <div class=""page-toolbar"">
                <div id=""dashboard-report-range"" class=""pull-right tooltips btn btn-fit-height grey-salt"" data-placement=""top"" data-original-title=""Change dashboard date range"">
                    <i class=""icon-calendar""></i>&nbsp;
                    <span class=""thin uppercase visible-lg-inline-block"">&nbsp;</span>&nbsp;
                    <i class=""fa fa-angle-down""></i>
                </div>
            </div>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN DASHBOARD STATS -->

        ");
            EndContext();
            BeginContext(3460, 2063, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bfe0216361234c299cea4972d16fa771", async() => {
                BeginContext(3510, 993, true);
                WriteLiteral(@"


            <div id=""page"" class=""page"">
                <div class=""header"">
                    <div class=""company"">TechWorld Thế Giới Công Nghệ Hiện Đại</div>
                </div>
                <br />
                <div class=""title-dskh"">
                    DANH SÁCH KHÁCH HÀNG
                    <br />
                    -------oOo-------
                </div>
                <br />
                <br />
                <br />

                <table class=""TableData"" style=""width:720px;"">
                    <tr>
                        <th width=""5%"" class=""th-print"">STT</th>
                        <th width=""18%"" class=""th-print"">Tên Khách Hàng</th>
                        <th width=""16%"" class=""th-print"">Email</th>
                        <th width=""21%"" class=""th-print"">Địa Chỉ</th>
                        <th width=""13%"" class=""th-print"">Số Điện Thoại</th>
                        <th width=""13%"" class=""th-print"">Ngày Sinh</th>
");
                EndContext();
#line 156 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"

                TechWorld_2Context db = new TechWorld_2Context();
                List <KhachHang> kh   = db.KhachHang.ToList();


#line default
#line hidden
                BeginContext(4710, 24, true);
                WriteLiteral("                        ");
                EndContext();
#line 160 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"
                foreach (var item in kh)
                {
#line default
#line hidden
                    BeginContext(4788, 89, true);
                    WriteLiteral("                        <tr>\r\n                            <td style=\"text-align:center;\">");
                    EndContext();
                    BeginContext(4878, 9, false);
#line 163 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"
                    Write(item.MaKh);

#line default
#line hidden
                    EndContext();
                    BeginContext(4887, 66, true);
                    WriteLiteral("</td>\r\n                            <td style=\"text-align:center;\">");
                    EndContext();
                    BeginContext(4954, 10, false);
#line 164 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"
                    Write(item.HoTen);

#line default
#line hidden
                    EndContext();
                    BeginContext(4964, 66, true);
                    WriteLiteral("</td>\r\n                            <td style=\"text-align:center;\">");
                    EndContext();
                    BeginContext(5031, 10, false);
#line 165 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"
                    Write(item.Email);

#line default
#line hidden
                    EndContext();
                    BeginContext(5041, 39, true);
                    WriteLiteral("</td>\r\n                            <td>");
                    EndContext();
                    BeginContext(5081, 11, false);
#line 166 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"
                    Write(item.DiaChi);

#line default
#line hidden
                    EndContext();
                    BeginContext(5092, 66, true);
                    WriteLiteral("</td>\r\n                            <td style=\"text-align:center;\">");
                    EndContext();
                    BeginContext(5159, 14, false);
#line 167 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"
                    Write(item.DienThoai);

#line default
#line hidden
                    EndContext();
                    BeginContext(5173, 66, true);
                    WriteLiteral("</td>\r\n                            <td style=\"text-align:center;\">");
                    EndContext();
                    BeginContext(5240, 13, false);
#line 168 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"
                    Write(item.NgaySinh);

#line default
#line hidden
                    EndContext();
                    BeginContext(5253, 38, true);
                    WriteLiteral("</td>\r\n                        </tr>\r\n");
                    EndContext();
#line 170 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"
                }

#line default
#line hidden
                BeginContext(5314, 116, true);
                WriteLiteral("\r\n\r\n                    </table>\r\n\r\n                    <div class=\"footer-right\">\r\n                        TP.HCM, ");
                EndContext();
                BeginContext(5431, 12, false);
#line 176 "C:\Users\Admin\Downloads\Ecommerce-TechWorld\TECHWORLD_1\TECHWORLD_1\Views\MailChimp\Print.cshtml"
                Write(DateTime.Now);

#line default
#line hidden
                EndContext();
                BeginContext(5443, 73, true);
                WriteLiteral(" <br />\r\n                    </div>\r\n                </div>\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);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(5523, 158, true);
            WriteLiteral("\r\n\r\n            <!-- END DASHBOARD STATS -->\r\n            <div class=\"clearfix\">\r\n            </div>\r\n\r\n        </div>\r\n    </div>\r\n    <!-- END CONTENT -->\r\n");
            EndContext();
        }