public GioHangController(MyPhamContext context, IConfiguration config)
        {
            db = context;

            _clientId  = config["PaypalSetting:ClientID"];
            _secretKey = config["PaypalSetting:SecretKey"];
        }
Beispiel #2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(47, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 3 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"

            ViewData["Title"] = "| Doanh thu";
            Layout            = "~/Views/Shared/_LayoutAdmin.cshtml";

#line default
#line hidden
            BeginContext(143, 618, true);
            WriteLiteral(@"<div class=""row"">
    <div class=""col-lg-12"">
        <h1 class=""page-header"">Thống kê sản phẩm đã bán</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class=""row"">
    <div class=""col-lg-12"">
        <div class=""panel panel-default"">
            <div class=""panel-heading"">
                Danh sách
            </div>
            <!-- /.panel-heading -->
            <div class=""panel-body"">
                <table width=""100%"" class=""table table-striped table-bordered table-hover"" id=""dataTables-example"">
                    <thead>
                        <tr>
                            <th>");
            EndContext();
            BeginContext(762, 40, false);
#line 25 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
            Write(Html.DisplayNameFor(model => model.MaSp));

#line default
#line hidden
            EndContext();
            BeginContext(802, 38, true);
            WriteLiteral("</th>\n                            <th>");
            EndContext();
            BeginContext(841, 56, false);
#line 26 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
            Write(Html.DisplayNameFor(model => model.MaSpNavigation.TenSp));

#line default
#line hidden
            EndContext();
            BeginContext(897, 38, true);
            WriteLiteral("</th>\n                            <th>");
            EndContext();
            BeginContext(936, 42, false);
#line 27 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
            Write(Html.DisplayNameFor(model => model.DonGia));

#line default
#line hidden
            EndContext();
            BeginContext(978, 38, true);
            WriteLiteral("</th>\n                            <th>");
            EndContext();
            BeginContext(1017, 43, false);
#line 28 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
            Write(Html.DisplayNameFor(model => model.SoLuong));

#line default
#line hidden
            EndContext();
            BeginContext(1060, 93, true);
            WriteLiteral("</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n");
            EndContext();
#line 32 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"

            MyPhamContext db       = new MyPhamContext();
            int           dem      = db.SanPham.Count();
            double?       tongtien = 0;
            for (int i = 1; i <= dem; i++)
            {
                var tk = db.ChiTietHd.Where(m => m.MaSp == i).Where(p => p.MaHdNavigation.MaTrangThai != 0);
                var sp = db.SanPham.Where(m => m.MaSp == i);
                int?sl = 0;


#line default
#line hidden
#line 41 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
                foreach (var Tk in tk)
                {
                    sl += Tk.SoLuong;
                }

#line default
#line hidden
#line 44 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"

                if (tk != null && sl > 0)
                {
                    foreach (var Sp in sp)
                    {
                        tongtien += Sp.DonGia * sl;

#line default
#line hidden
                        BeginContext(2127, 93, true);
                        WriteLiteral("                                        <tr>\n                                            <td>");
                        EndContext();
                        BeginContext(2221, 37, false);
#line 51 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
                        Write(Html.DisplayFor(modelItem => Sp.MaSp));

#line default
#line hidden
                        EndContext();
                        BeginContext(2258, 54, true);
                        WriteLiteral("</td>\n                                            <td>");
                        EndContext();
                        BeginContext(2313, 38, false);
#line 52 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
                        Write(Html.DisplayFor(modelItem => Sp.TenSp));

#line default
#line hidden
                        EndContext();
                        BeginContext(2351, 54, true);
                        WriteLiteral("</td>\n                                            <td>");
                        EndContext();
                        BeginContext(2406, 39, false);
#line 53 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
                        Write(Html.DisplayFor(modelItem => Sp.DonGia));

#line default
#line hidden
                        EndContext();
                        BeginContext(2445, 54, true);
                        WriteLiteral("</td>\n                                            <td>");
                        EndContext();
                        BeginContext(2500, 2, false);
#line 54 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
                        Write(sl);

#line default
#line hidden
                        EndContext();
                        BeginContext(2502, 52, true);
                        WriteLiteral("</td>\n                                        </tr>\n");
                        EndContext();
#line 56 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
                    }
                }
            }


#line default
#line hidden
            BeginContext(2682, 138, true);
            WriteLiteral("                    </tbody>\n                </table>\n                <!-- /.table-responsive -->\n                <pre><b>Tổng doanh thu: ");
            EndContext();
            BeginContext(2821, 32, false);
#line 63 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\ChiTietHds\ThongKe.cshtml"
            Write(tongtien.Value.ToString("#,##0"));

#line default
#line hidden
            EndContext();
            BeginContext(2853, 166, true);
            WriteLiteral(" VNĐ</b></pre>\n            </div>\n            <!-- /.panel-body -->\n        </div>\n        <!-- /.panel -->\n    </div>\n    <!-- /.col-lg-12 -->\n</div>\n<!-- /.row -->\n");
            EndContext();
        }
Beispiel #3
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(44, 4, true);
            WriteLiteral("    ");
            EndContext();
#line 2 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"

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


#line default
#line hidden
            BeginContext(138, 1060, true);
            WriteLiteral(@"

    <div id=""content"">
        <div class=""container"">
            <div class=""row"">
                <div class=""col-lg-12"">
                    <!-- breadcrumb-->
                    <nav aria-label=""breadcrumb"">
                        <ol class=""breadcrumb"">
                            <li class=""breadcrumb-item""><a href=""#"">Trang chủ</a></li>
                            <li aria-current=""page"" class=""breadcrumb-item active"">Hóa đơn của bạn</li>
                        </ol>
                    </nav>
                </div>
                <div class=""col-lg-3"">
                    <!--
                    *** CUSTOMER MENU ***
                    _________________________________________________________
                    -->
                    <div class=""card sidebar-menu"">
                        <div class=""card-header"">
                            <h3 class=""h4 card-title"">Khách Hàng</h3>
                        </div>
                        <div class=""card-body"">
                            <u");
            WriteLiteral("l class=\"nav nav-pills flex-column\">");
            EndContext();
            BeginContext(1198, 115, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "73e729f39e64421bade25ce81ebac14a", async() => {
                BeginContext(1268, 41, true);
                WriteLiteral("<i class=\"fa fa-list\"></i>Hóa đơn của bạn");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1313, 115, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7fa8fb61e4d24653bfa234b33beb09b5", async() => {
                BeginContext(1378, 46, true);
                WriteLiteral("<i class=\"fa fa-heart\"></i> Sản phẩm yêu thí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.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__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(1428, 105, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05d5ed376c624c6fbb8043c4771f5dd3", async() => {
                BeginContext(1494, 35, true);
                WriteLiteral("<i class=\"fa fa-user\"></i>Tài khoản");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1533, 112, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cd0f22c8086a4088a2d8b5b9f735b378", async() => {
                BeginContext(1601, 40, true);
                WriteLiteral("<i class=\"fa fa-sign-out\"></i> Đăng xuất");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_6.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_7.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1645, 451, true);
            WriteLiteral(@"</ul>
                        </div>
                    </div>
                    <!-- /.col-lg-3-->
                    <!-- *** CUSTOMER MENU END ***-->
                </div>
                <div id=""customer-orders"" class=""col-lg-9"">
                    <div class=""box"">
                        <h1>Hóa đơn của bạn</h1>
                        <p class=""lead""></p>
                        <p class=""text-muted"">Nếu bạn cần hỗ trợ, xin vui lòng ");
            EndContext();
            BeginContext(2096, 57, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "830d053aab1645bd87b1359fb7906453", async() => {
                BeginContext(2142, 7, true);
                WriteLiteral("Liên hệ");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_8.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_9.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2153, 90, true);
            WriteLiteral(" với chúng tôi, Chúng tôi luôn ở đây để hỗ trợ bạn 24/7.</p>\n                        <hr>\n");
            EndContext();
#line 42 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
            if (Context.Session.Get <KhachHang>
                    ("TaiKhoan") != null)
            {
                KhachHang kh = Context.Session.Get <KhachHang>
                                   ("TaiKhoan");
                MyPhamContext db   = new MyPhamContext();
                var           dshd = db.HoaDon
                                     .Where(p => p.MaKh.ToString() == kh.MaKh)
                                     .ToList();

#line default
#line hidden
                BeginContext(2745, 666, true);
                WriteLiteral(@"                                <div class=""table-responsive"">
                                    <table class=""table table-hover"">
                                        <thead>
                                            <tr>
                                                <th>Mã hóa đơn</th>
                                                <th>Ngày đặt</th>
                                                <th>Người nhận</th>
                                                <th>Tình trạng</th>
                                                <th>Chi tiết</th>
                                            </tr>
                                        </thead>

");
                EndContext();
#line 63 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                foreach (var item in dshd)
                {
#line default
#line hidden
                    BeginContext(3521, 150, true);
                    WriteLiteral("                                        <tbody>\n                                            <tr>\n                                                <th>#");
                    EndContext();
                    BeginContext(3672, 9, false);
#line 67 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    Write(item.MaHd);

#line default
#line hidden
                    EndContext();
                    BeginContext(3681, 58, true);
                    WriteLiteral("</th>\n                                                <td>");
                    EndContext();
                    BeginContext(3740, 12, false);
#line 68 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    Write(item.NgayDat);

#line default
#line hidden
                    EndContext();
                    BeginContext(3752, 6, true);
                    WriteLiteral("</td>\n");
                    EndContext();
#line 69 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    if (item.TenNgNhan != null)
                    {
#line default
#line hidden
                        BeginContext(3885, 52, true);
                        WriteLiteral("                                                <td>");
                        EndContext();
                        BeginContext(3938, 14, false);
#line 71 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                        Write(item.TenNgNhan);

#line default
#line hidden
                        EndContext();
                        BeginContext(3952, 6, true);
                        WriteLiteral("</td>\n");
                        EndContext();
#line 72 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    }
                    else
                    {
#line default
#line hidden
                        BeginContext(4111, 52, true);
                        WriteLiteral("                                                <td>");
                        EndContext();
                        BeginContext(4164, 10, false);
#line 75 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                        Write(item.HoTen);

#line default
#line hidden
                        EndContext();
                        BeginContext(4174, 6, true);
                        WriteLiteral("</td>\n");
                        EndContext();
#line 76 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    }

#line default
#line hidden
                    BeginContext(4230, 1, true);
                    WriteLiteral("\n");
                    EndContext();
#line 78 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    if (item.MaTrangThai == 3)
                    {
#line default
#line hidden
                        BeginContext(4357, 111, true);
                        WriteLiteral("                                                <td><span class=\"badge badge-success\">Đã giao hàng</span></td>\n");
                        EndContext();
#line 81 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    }
                    else if (item.MaTrangThai == 0)
                    {
#line default
#line hidden
                        BeginContext(4648, 110, true);
                        WriteLiteral("                                                <td><span class=\"badge badge-danger\">Chờ xác nhận</span></td>\n");
                        EndContext();
#line 85 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    }
                    else if (item.MaTrangThai == 1)
                    {
#line default
#line hidden
                        BeginContext(4938, 117, true);
                        WriteLiteral("                                                <td><span class=\"badge badge-warning\">Đang chuẩn bị hàng</span></td>\n");
                        EndContext();
#line 89 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    }
                    else if (item.MaTrangThai == 2)
                    {
#line default
#line hidden
                        BeginContext(5235, 110, true);
                        WriteLiteral("                                                <td><span class=\"badge badge-info\">Đang giao hàng</span></td>\n");
                        EndContext();
#line 93 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    }

#line default
#line hidden
                    BeginContext(5395, 52, true);
                    WriteLiteral("                                                <td>");
                    EndContext();
                    BeginContext(5447, 112, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "420649f26cd74e59a042455db4db5aa9", async() => {
                        BeginContext(5552, 3, true);
                        WriteLiteral("Xem");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_10.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                    {
                        throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                    }
                    BeginWriteTagHelperAttribute();
#line 94 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                    WriteLiteral(item.MaHd);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(5559, 105, true);
                    WriteLiteral("</td>\n                                            </tr>\n                                        </tbody>\n");
                    EndContext();
#line 97 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(5706, 84, true);
                WriteLiteral("                                    </table>\n                                </div>\n");
                EndContext();
#line 100 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(5896, 91, true);
                WriteLiteral("                                <div class=\"alert alert-danger\" style=\"text-align:center\"> ");
                EndContext();
                BeginContext(5987, 97, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "388fa1fdee97475c952ee3ad6dad88cd", async() => {
                    BeginContext(6038, 42, true);
                    WriteLiteral("Bạn cần đăng nhập để xem hóa đơn 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.Action = (string)__tagHelperAttribute_12.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (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(6084, 7, true);
                WriteLiteral("</div>\n");
                EndContext();
#line 105 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(6125, 95, true);
            WriteLiteral("                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n");
            EndContext();
        }
 public HoaDonController(MyPhamContext context)
 {
     db = context;
 }
Beispiel #5
0
 public AjaxController(MyPhamContext ctx)
 {
     db = ctx;
 }
Beispiel #6
0
 public KhoHangsController(MyPhamContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public AdminController(MyPhamContext context)
 {
     db = context;
 }
Beispiel #8
0
 public BinhLuansController(MyPhamContext context)
 {
     _context = context;
 }
Beispiel #9
0
 public YeuThichController(MyPhamContext context)
 {
     _context = context;
 }
 public ChiTietHdsController(MyPhamContext context)
 {
     _context = context;
 }
Beispiel #11
0
 public HomeController(MyPhamContext context)
 {
     db = context;
 }
Beispiel #12
0
 public KhachHangController(MyPhamContext context)
 {
     db = context;
 }
Beispiel #13
0
 public SendSMSController(IAuthy authy, MyPhamContext context, ISmsService smsService)
 {
     _authy      = authy;
     _context    = context;
     _smsService = smsService;
 }
 public DangNhapController(IOptions <JWTSettings> jwtsettings)
 {
     _svc         = new DangNhapSvc();
     _jwtsettings = jwtsettings.Value;
     _context     = new MyPhamContext();
 }
Beispiel #15
0
 public ThuongHieuxController(MyPhamContext context)
 {
     _context = context;
 }
Beispiel #16
0
 public GioHangController(MyPhamContext context)
 {
     db = context;
 }
 public DangNhapController(MyPhamContext context)
 {
     db = context;
 }
Beispiel #18
0
 //Encrytion ecr = new Encrytion();
 public KhachHangController(MyPhamContext context, IDataProtectionProvider provider, IAuthy auth, ISmsService smsService)
 {
     db          = context;
     _smsService = smsService;
     _authy      = auth;
 }
Beispiel #19
0
 public RestoreAccountController(MyPhamContext context)
 {
     db = context;
 }
Beispiel #20
0
 public SanPhamsController(MyPhamContext context)
 {
     _context = context;
 }
Beispiel #21
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"

            ViewData["Title"] = "ChiTiet";
            Layout            = "~/Views/Shared/_Frontend.cshtml";

#line default
#line hidden
            BeginContext(135, 287, true);
            WriteLiteral(@"
<div id=""content"">
    <div class=""container"">
        <div class=""row"">
            <div class=""col-lg-12"">
                <!-- breadcrumb-->
                <nav aria-label=""breadcrumb"">
                    <ol class=""breadcrumb"">
                        <li class=""breadcrumb-item"">");
            EndContext();
            BeginContext(422, 38, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a279b3fec067445884c1a437e569d4e5", async() => {
                BeginContext(447, 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);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(460, 655, true);
            WriteLiteral(@"</li>
                        <li aria-current=""page"" class=""breadcrumb-item active"">Hóa đơn của bạn</li>
                    </ol>
                </nav>
            </div>
            <div class=""col-lg-3"">
                <!--
                *** CUSTOMER MENU ***
                _________________________________________________________
                -->
                <div class=""card sidebar-menu"">
                    <div class=""card-header"">
                        <h3 class=""h4 card-title"">Khách Hàng</h3>
                    </div>
                    <div class=""card-body"">
                        <ul class=""nav nav-pills flex-column"">");
            EndContext();
            BeginContext(1115, 115, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b3681fad25cb432d9e38fa753a089fdc", async() => {
                BeginContext(1185, 41, true);
                WriteLiteral("<i class=\"fa fa-list\"></i>Hóa đơn của bạn");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (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(1230, 115, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7fa856c3a2c240d7b7e1545c64992735", async() => {
                BeginContext(1295, 46, true);
                WriteLiteral("<i class=\"fa fa-heart\"></i> Sản phẩm yêu thí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.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_4.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__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(1345, 105, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "378bdca47a1f4810844e27d679d6eb4b", async() => {
                BeginContext(1411, 35, true);
                WriteLiteral("<i class=\"fa fa-user\"></i>Tài khoản");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_6.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1450, 112, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "65c49b375254412ea571ea31c7455edb", async() => {
                BeginContext(1518, 40, true);
                WriteLiteral("<i class=\"fa fa-sign-out\"></i> Đăng xuất");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_7.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1562, 215, true);
            WriteLiteral("</ul>\n                    </div>\n                </div>\n                <!-- /.col-lg-3-->\n                <!-- *** CUSTOMER MENU END ***-->\n            </div>\n            <div id=\"customer-order\" class=\"col-lg-9\">\n");
            EndContext();
#line 36 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
            if (Context.Session.Get <KhachHang>("TaiKhoan") != null)
            {
                MyPhamContext db       = new MyPhamContext();
                double        tongcong = 0;


#line default
#line hidden
                BeginContext(1970, 128, true);
                WriteLiteral("                    <div class=\"box\">\n                        <h1></h1>\n                        <h1>Chi tiết đơn hàng  <strong>#");
                EndContext();
                BeginContext(2099, 10, false);
#line 43 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                Write(ViewBag.Ma);

#line default
#line hidden
                EndContext();
                BeginContext(2109, 95, true);
                WriteLiteral("</strong></h1>\n\n                        <p class=\"text-muted\">Nếu bạn cần hỗ trợ, xin vui lòng ");
                EndContext();
                BeginContext(2204, 57, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fe9d5b18b2514597ae5d6a6c52763bc5", async() => {
                    BeginContext(2250, 7, true);
                    WriteLiteral("Liên hệ");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2261, 648, true);
                WriteLiteral(@" với chúng tôi, Chúng tôi luôn ở đây để hỗ trợ bạn 24/7.</p>
                        <hr>
                        <div class=""table-responsive mb-4"">
                            <table class=""table"">
                                <thead>
                                    <tr>
                                        <th colspan=""2"">Sản phẩm</th>
                                        <th>Số lượng</th>
                                        <th>Đơn giá</th>
                                        <th>Tổng cộng</th>
                                    </tr>
                                </thead>
                                <tbody>
");
                EndContext();
#line 58 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                foreach (var item in Model)
                {
                    SanPham sp       = db.SanPham.Find(item.MaSp);
                    var     tongtien = @item.DonGia * @item.SoLuong;
                    tongcong = tongcong + Convert.ToDouble(tongtien);


#line default
#line hidden
                    BeginContext(3308, 65, true);
                    WriteLiteral("<tr>\n                                            <td><a href=\"#\">");
                    EndContext();
                    BeginContext(3373, 50, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "9efa9807334646fea8cdbe8087c78a62", 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("", 3383, "~/Hinh/beauty/", 3383, 14, true);
#line 64 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                    AddHtmlAttributeValue("", 3397, sp.Hinh, 3397, 8, false);

#line default
#line hidden
                    EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 64 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                    AddHtmlAttributeValue("", 3412, sp.TenSp, 3412, 9, 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(3423, 70, true);
                    WriteLiteral("</a></td>\n                                            <td><a href=\"#\">");
                    EndContext();
                    BeginContext(3494, 8, false);
#line 65 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                    Write(sp.TenSp);

#line default
#line hidden
                    EndContext();
                    BeginContext(3502, 84, true);
                    WriteLiteral("</a></td>\n                                            <td style=\"text-align:center\">");
                    EndContext();
                    BeginContext(3587, 12, false);
#line 66 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                    Write(item.SoLuong);

#line default
#line hidden
                    EndContext();
                    BeginContext(3599, 54, true);
                    WriteLiteral("</td>\n                                            <td>");
                    EndContext();
                    BeginContext(3654, 35, false);
#line 67 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                    Write(item.DonGia.Value.ToString("#,##0"));

#line default
#line hidden
                    EndContext();
                    BeginContext(3689, 56, true);
                    WriteLiteral(" đ</td>\n                                            <td>");
                    EndContext();
                    BeginContext(3746, 32, false);
#line 68 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                    Write(tongtien.Value.ToString("#,##0"));

#line default
#line hidden
                    EndContext();
                    BeginContext(3778, 54, true);
                    WriteLiteral(" đ</td>\n                                        </tr>\n");
                    EndContext();
#line 70 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                }

#line default
#line hidden
                BeginContext(3870, 262, true);
                WriteLiteral(@"

                                </tbody>
                                <tfoot>
                                    <tr>
                                        <th colspan=""4"" class=""text-right"">Tổng đơn hàng</th>
                                        <th>");
                EndContext();
                BeginContext(4133, 26, false);
#line 77 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                Write(tongcong.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(4159, 691, true);
                WriteLiteral(@" đ</th>
                                    </tr>
                                    <tr>
                                        <th colspan=""4"" class=""text-right"">Phí giao hàng</th>
                                        <th>Miễn phí</th>
                                    </tr>
                                    <tr>
                                        <th colspan=""4"" class=""text-right"">Khuyến mãi</th>
                                        <th>0</th>
                                    </tr>
                                    <tr>
                                        <th colspan=""4"" class=""text-right"">Tổng thanh toán</th>
                                        <th>");
                EndContext();
                BeginContext(4851, 26, false);
#line 89 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
                Write(tongcong.ToString("#,##0"));

#line default
#line hidden
                EndContext();
                BeginContext(4877, 238, true);
                WriteLiteral(" đ</th>\n                                    </tr>\n                                </tfoot>\n                            </table>\n                        </div>\n                        <!-- /.table-responsive-->\n\n                    </div>\n");
                EndContext();
#line 97 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(5173, 79, true);
                WriteLiteral("                    <div class=\"alert alert-danger\" style=\"text-align:center\"> ");
                EndContext();
                BeginContext(5252, 98, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d104cd37362a413cb92576e656e05e98", async() => {
                    BeginContext(5303, 43, true);
                    WriteLiteral("Bạn cần đăng nhập để xem chi tiết đơn 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.Action = (string)__tagHelperAttribute_10.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(5350, 7, true);
                WriteLiteral("</div>\n");
                EndContext();
#line 102 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\HoaDon\ChiTiet.cshtml"
            }

#line default
#line hidden
            BeginContext(5375, 51, true);
            WriteLiteral("            </div>\n        </div>\n    </div>\n</div>");
            EndContext();
        }
 public NhanViensController(MyPhamContext context)
 {
     _context = context;
 }
Beispiel #23
0
 public HoaDonsController(MyPhamContext context)
 {
     _context = context;
 }
 //Encrytion ecr = new Encrytion(); // Encrypt HoTen, DiaChi, DienThoai, Email
 public DangNhapController(MyPhamContext context)// IAuthy auth, ISmsService smsService)
 {
     //  _authy = auth;
     db = context;
     // _smsService = smsService;
 }
 public SanPhamController(MyPhamContext context)
 {
     db = context;
 }
Beispiel #26
0
 public ThanhToanController(MyPhamContext context)
 {
     db = context;
 }
Beispiel #27
0
 public LoaisController(MyPhamContext context)
 {
     _context = context;
 }
Beispiel #28
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"

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

#line default
#line hidden
            BeginContext(132, 970, true);
            WriteLiteral(@"
<div id=""content"">
    <div class=""container"">
        <div class=""row"">
            <div class=""col-lg-12"">
                <!-- breadcrumb-->
                <nav aria-label=""breadcrumb"">
                    <ol class=""breadcrumb"">
                        <li class=""breadcrumb-item""><a href=""#"">Trang chủ</a></li>
                        <li aria-current=""page"" class=""breadcrumb-item active"">Sản phẩm yêu thích</li>
                    </ol>
                </nav>
            </div>
            <div class=""col-lg-3"">
                <!--
                *** CUSTOMER MENU ***
                _________________________________________________________
                -->
                <div class=""card sidebar-menu"">
                    <div class=""card-header"">
                        <h3 class=""h4 card-title"">Khách Hàng</h3>
                    </div>
                    <div class=""card-body"">
                        <ul class=""nav nav-pills flex-column"">");
            EndContext();
            BeginContext(1102, 108, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c064fda3f5d34ec093a4bebefb7f50d4", async() => {
                BeginContext(1165, 41, true);
                WriteLiteral("<i class=\"fa fa-list\"></i>Hóa đơn của bạn");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1210, 122, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "325e61f512484707b2117e1168a3582e", async() => {
                BeginContext(1282, 46, true);
                WriteLiteral("<i class=\"fa fa-heart\"></i> Sản phẩm yêu thí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.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__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(1332, 105, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "93c0c8311c944d0485714763daa82c57", async() => {
                BeginContext(1398, 35, true);
                WriteLiteral("<i class=\"fa fa-user\"></i>Tài khoản");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1437, 112, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fe85aa4a5f1844a09c00be27c22c3ebc", async() => {
                BeginContext(1505, 40, true);
                WriteLiteral("<i class=\"fa fa-sign-out\"></i> Đăng xuất");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_6.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_7.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1549, 315, true);
            WriteLiteral(@"</ul>
                    </div>
                </div>
                <!-- /.col-lg-3-->
                <!-- *** CUSTOMER MENU END ***-->
            </div>
            <div id=""wishlist"" class=""col-lg-9"">

                <div class=""box"">
                    <h1>Sản phẩm yêu thích</h1>
                </div>
");
            EndContext();
#line 40 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
            if (Context.Session.Get <KhachHang>("TaiKhoan") != null)
            {
                MyPhamContext db1 = new MyPhamContext();
                KhachHang     kh  = Context.Session.Get <KhachHang>("TaiKhoan");

                var ds = db1.YeuThich.Where(p => p.MaKh == kh.MaKh).ToList();

#line default
#line hidden
                BeginContext(2178, 49, true);
                WriteLiteral("                    <div class=\"row products\">\n\n\n");
                EndContext();
#line 49 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                foreach (var item1 in ds)
                {
                    SanPham sp = db1.SanPham.Find(item1.MaSp);

#line default
#line hidden
                    BeginContext(2375, 326, true);
                    WriteLiteral(@"                            <div class=""col-lg-4 col-md-6"">
                                <div class=""product"">
                                    <div class=""flip-container"">
                                        <div class=""flipper"">
                                            <div class=""front""><a href=""detail.html"">");
                    EndContext();
                    BeginContext(2701, 59, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "10c3061902db4fc8b012f4c1d45cd90e", 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("", 2711, "~/Hinh/beauty/", 2711, 14, true);
#line 56 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                    AddHtmlAttributeValue("", 2725, sp.Hinh, 2725, 8, false);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(2760, 95, true);
                    WriteLiteral("</a></div>\n                                            <div class=\"back\"><a href=\"detail.html\">");
                    EndContext();
                    BeginContext(2855, 60, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "e5d0b2cd5a8445e0b23c23a79dcb075e", 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("", 2865, "~/Hinh/beauty/", 2865, 14, true);
#line 57 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                    AddHtmlAttributeValue("", 2879, sp.Hinh2, 2879, 9, false);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(2915, 140, true);
                    WriteLiteral("</a></div>\n                                        </div>\n                                    </div><a href=\"detail.html\" class=\"invisible\">");
                    EndContext();
                    BeginContext(3055, 59, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "c19758291662487d8f8ea22682a544d8", 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("", 3065, "~/Hinh/beauty/", 3065, 14, true);
#line 59 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                    AddHtmlAttributeValue("", 3079, sp.Hinh, 3079, 8, false);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(3114, 104, true);
                    WriteLiteral("</a>\n                                    <div class=\"text\">\n                                        <h3>");
                    EndContext();
                    BeginContext(3218, 86, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e9c1f3d69fcd463c9362d8eecad2371e", async() => {
                        BeginContext(3292, 8, false);
#line 61 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                        Write(sp.TenSp);

#line default
#line hidden
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_10.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_11.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11);
                    if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                    {
                        throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                    }
                    BeginWriteTagHelperAttribute();
#line 61 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                    WriteLiteral(sp.MaSp);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(3304, 113, true);
                    WriteLiteral("</h3>\n                                        <p class=\"price\">\n                                            <del>");
                    EndContext();
                    BeginContext(3418, 32, false);
#line 63 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                    Write(sp.GiaCu.Value.ToString("#,##0"));

#line default
#line hidden
                    EndContext();
                    BeginContext(3450, 10, true);
                    WriteLiteral(" đ </del> ");
                    EndContext();
                    BeginContext(3461, 33, false);
#line 63 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                    Write(sp.DonGia.Value.ToString("#,##0"));

#line default
#line hidden
                    EndContext();
                    BeginContext(3494, 107, true);
                    WriteLiteral(" đ\n                                        </p>\n                                        <p class=\"buttons\">");
                    EndContext();
                    BeginContext(3601, 119, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "36f0d7a30c8547e49ee0642142f0e48d", async() => {
                        BeginContext(3708, 8, true);
                        WriteLiteral("Chi tiết");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_10.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_11.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11);
                    if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                    {
                        throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                    }
                    BeginWriteTagHelperAttribute();
#line 65 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                    WriteLiteral(sp.MaSp);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(3720, 169, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "35c82216210d4d8d8dbb1a7f21216fe0", async() => {
                        BeginContext(3838, 47, true);
                        WriteLiteral("<i class=\"fa fa-shopping-cart\"></i>Thêm vào giỏ");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_13.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_14.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14);
                    if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                    {
                        throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-mahh", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                    }
                    BeginWriteTagHelperAttribute();
#line 65 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                    WriteLiteral(sp.MaSp);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh"] = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-mahh", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["mahh"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                    {
                        throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-sl", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                    }
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["sl"] = (string)__tagHelperAttribute_15.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_16);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(3889, 235, true);
                    WriteLiteral("</p>\n                                    </div>\n                                    <!-- /.text-->\n                                </div>\n                                <!-- /.product            -->\n                            </div>\n");
                    EndContext();
#line 71 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(4151, 73, true);
                WriteLiteral("\n\n                        <!-- /.products-->\n\n                    </div>\n");
                EndContext();
#line 78 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(4281, 79, true);
                WriteLiteral("                    <div class=\"alert alert-danger\" style=\"text-align:center\"> ");
                EndContext();
                BeginContext(4360, 99, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "59e47f41c764470b97892a3a057c1635", async() => {
                    BeginContext(4411, 44, true);
                    WriteLiteral("Bạn cần đăng nhập để xem sản phẩm yêu thí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.Action = (string)__tagHelperAttribute_17.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_17);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (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(4459, 7, true);
                WriteLiteral("</div>\n");
                EndContext();
#line 82 "C:\Users\DELL\Desktop\Obaju\WebOnline\Views\YeuThich\Index.cshtml"
            }

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