Ejemplo n.º 1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(13, 550, true);
            WriteLiteral(@"
<div class=""table-responsive rounded"">
	<table class=""table table-striped table-bordered table-hover table-condensed table-sm table-active table-secondary"">
		<thead class=""thead-dark"">
			<tr>
				<th style=""width:30%;""></th>
				<th style=""width:10%;"">Item</th>
				<th style=""width:10%;"">Seller</th>
				<th style=""width:10%;"">Attributes</th>
				<th style=""width:10%;"">Quantity</th>
				<th class=""text-right"" style=""width:10%;"">Price</th>
				<th class=""text-right"" style=""width:10%;"">Subtotal</th>
			</tr>
		</thead>
		<tbody>
");
            EndContext();
#line 17 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"

            ECommerceService eCommerce            = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            short            count                = 0;
            string           removeAction         = Url.Action("RemoveFromCart", "Cart");
            string           changeQuantityAction = Url.Action("ChangeQuantity", "Cart");
            foreach (CartLine line in Model.Lines)
            {
                ProductView product = eCommerce.GetProductBy(line.SellerId, line.ProductTypeId);

#line default
#line hidden
                BeginContext(966, 32, true);
                WriteLiteral("\t\t\t\t\t<tr class=\"cartTableRow\">\r\n");
                EndContext();
#line 26 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                if (product == null ||
                    product.Status != ProductStatus.Active ||
                    !product.Active ||
                    eCommerce.GetProductTypeBy(int.Parse(product.ProductTypeId)).Status != ProductTypeStatus.Active)
                {
#line default
#line hidden
                    BeginContext(1220, 76, true);
                    WriteLiteral("\t\t\t\t\t\t\t<td>This product is currently unavailable</td>\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(1296, 236, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2b32a9e2a5d0dffa59fc4d3d8d5d8c17f62e8c698839", async() => {
                        BeginContext(1370, 44, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"index\"");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 1414, "\"", 1432, 1);
#line 34 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                        WriteAttributeValue("", 1422, count++, 1422, 10, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(1433, 92, true);
                        WriteLiteral(" />\r\n\t\t\t\t\t\t\t\t\t<input type=\"submit\" class=\"btn btn-sm btn-danger\" value=\"Remove\" />\r\n\t\t\t\t\t\t\t\t");
                        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);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 33 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    AddHtmlAttributeValue("", 1341, removeAction, 1341, 13, false);

#line default
#line hidden
                    EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (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(1532, 16, true);
                    WriteLiteral("\r\n\t\t\t\t\t\t\t</td>\r\n");
                    EndContext();
#line 38 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(1587, 11, true);
                    WriteLiteral("\t\t\t\t\t\t\t<td>");
                    EndContext();
                    BeginContext(1598, 107, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2b32a9e2a5d0dffa59fc4d3d8d5d8c17f62e8c6911946", async() => {
                    }
                                                                                );
                    __ECommerce_UI_MVC_Infrastructure_ImageTagHelper = CreateTagHelper <global::ECommerce.UI.MVC.Infrastructure.ImageTagHelper>();
                    __tagHelperExecutionContext.Add(__ECommerce_UI_MVC_Infrastructure_ImageTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
#line 42 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent = product.RepresentativeImage;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 42 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    AddHtmlAttributeValue("", 1677, product.ProductTypeName, 1677, 24, 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(1705, 36, true);
                    WriteLiteral("</td>\r\n\t\t\t\t\t\t\t<td class=\"text-left\">");
                    EndContext();
                    BeginContext(1742, 23, false);
#line 43 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    Write(product.ProductTypeName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1765, 36, true);
                    WriteLiteral("</td>\r\n\t\t\t\t\t\t\t<td class=\"text-left\">");
                    EndContext();
                    BeginContext(1802, 18, false);
#line 44 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    Write(product.SellerName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1820, 38, true);
                    WriteLiteral("</td>\r\n\t\t\t\t\t\t\t<td class=\"text-left\">\r\n");
                    EndContext();
#line 46 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    foreach (var attribute in line.Attributes)
                    {
#line default
#line hidden
                        BeginContext(1922, 12, true);
                        WriteLiteral("\t\t\t\t\t\t\t\t\t<p>");
                        EndContext();
                        BeginContext(1935, 13, false);
#line 48 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                        Write(attribute.Key);

#line default
#line hidden
                        EndContext();
                        BeginContext(1948, 2, true);
                        WriteLiteral(": ");
                        EndContext();
                        BeginContext(1951, 15, false);
#line 48 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                        Write(attribute.Value);

#line default
#line hidden
                        EndContext();
                        BeginContext(1966, 6, true);
                        WriteLiteral("</p>\r\n");
                        EndContext();
#line 49 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    }

#line default
#line hidden
                    BeginContext(1983, 55, true);
                    WriteLiteral("\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t<td class=\"text-center\">\r\n\t\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(2038, 369, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2b32a9e2a5d0dffa59fc4d3d8d5d8c17f62e8c6916355", async() => {
                        BeginContext(2124, 82, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t<input type=\"number\" name=\"quantity\" class=\"form-control quantityInput\"");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 2206, "\"", 2228, 1);
#line 53 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                        WriteAttributeValue("", 2214, line.Quantity, 2214, 14, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(2229, 47, true);
                        WriteLiteral(" />\r\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"index\"");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 2276, "\"", 2290, 1);
#line 54 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                        WriteAttributeValue("", 2284, count, 2284, 6, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(2291, 109, true);
                        WriteLiteral(" />\r\n\t\t\t\t\t\t\t\t\t<input type=\"submit\" class=\"btn btn-sm btn-warning\" value=\"Change\" disabled hidden />\r\n\t\t\t\t\t\t\t\t");
                        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);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 52 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    AddHtmlAttributeValue("", 2087, changeQuantityAction, 2087, 21, false);

#line default
#line hidden
                    EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (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(2407, 46, true);
                    WriteLiteral("\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t<td class=\"text-right\">");
                    EndContext();
                    BeginContext(2454, 36, false);
#line 58 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    Write(CurrencyFormat.Format(product.Price));

#line default
#line hidden
                    EndContext();
                    BeginContext(2490, 37, true);
                    WriteLiteral("</td>\r\n\t\t\t\t\t\t\t<td class=\"text-right\">");
                    EndContext();
                    BeginContext(2528, 67, false);
#line 59 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    Write(CurrencyFormat.Format(decimal.Parse(product.Price) * line.Quantity));

#line default
#line hidden
                    EndContext();
                    BeginContext(2595, 28, true);
                    WriteLiteral("</td>\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(2623, 236, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2b32a9e2a5d0dffa59fc4d3d8d5d8c17f62e8c6920703", async() => {
                        BeginContext(2697, 44, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"index\"");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 2741, "\"", 2759, 1);
#line 62 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                        WriteAttributeValue("", 2749, count++, 2749, 10, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(2760, 92, true);
                        WriteLiteral(" />\r\n\t\t\t\t\t\t\t\t\t<input type=\"submit\" class=\"btn btn-sm btn-danger\" value=\"Remove\" />\r\n\t\t\t\t\t\t\t\t");
                        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);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 61 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                    AddHtmlAttributeValue("", 2668, removeAction, 2668, 13, false);

#line default
#line hidden
                    EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (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(2859, 16, true);
                    WriteLiteral("\r\n\t\t\t\t\t\t\t</td>\r\n");
                    EndContext();
#line 66 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
                }

#line default
#line hidden
                BeginContext(2884, 12, true);
                WriteLiteral("\t\t\t\t\t</tr>\r\n");
                EndContext();
#line 68 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
            }


#line default
#line hidden
            BeginContext(2909, 111, true);
            WriteLiteral("\t\t</tbody>\r\n\t\t<tfoot>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"6\" class=\"text-right\">Total:</td>\r\n\t\t\t\t<td class=\"text-right\">");
            EndContext();
            BeginContext(3021, 65, false);
#line 74 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CartTable\Default.cshtml"
            Write(CurrencyFormat.FormatWithUnit(Model.ComputeTotalValue(eCommerce)));

#line default
#line hidden
            EndContext();
            BeginContext(3086, 46, true);
            WriteLiteral("</td>\r\n\t\t\t</tr>\r\n\t\t</tfoot>\r\n\t</table>\r\n</div>");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(20, 58, true);
            WriteLiteral("\r\n<div class=\"card d-inline-block col-3 mb-3 ml-5 p-0\">\r\n\t");
            EndContext();
            BeginContext(78, 118, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "ddafc729378062637e09a5810f29060231e4a4cc6769", async() => {
            }
                                                                        );
            __ECommerce_UI_MVC_Infrastructure_ImageTagHelper = CreateTagHelper <global::ECommerce.UI.MVC.Infrastructure.ImageTagHelper>();
            __tagHelperExecutionContext.Add(__ECommerce_UI_MVC_Infrastructure_ImageTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 4 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\ProductSummary.cshtml"
            __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent = Model.RepresentativeImage;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 4 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\ProductSummary.cshtml"
            AddHtmlAttributeValue("", 170, Model.ProductTypeName, 170, 22, 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(196, 72, true);
            WriteLiteral("\r\n\t<div class=\"card-body\">\r\n\t\t<h4 class=\"card-title text-truncate\">\r\n\t\t\t");
            EndContext();
            BeginContext(268, 203, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ddafc729378062637e09a5810f29060231e4a4cc8846", async() => {
                BeginContext(446, 21, false);
#line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\ProductSummary.cshtml"
                Write(Model.ProductTypeName);

#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_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-sellerId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
            }
            BeginWriteTagHelperAttribute();
#line 8 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\ProductSummary.cshtml"
            WriteLiteral(Model.SellerId);

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["sellerId"] = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-sellerId", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["sellerId"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            BeginWriteTagHelperAttribute();
#line 8 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\ProductSummary.cshtml"
            WriteLiteral(Model.ProductTypeId);

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["productTypeId"] = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-productTypeId", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["productTypeId"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "title", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\ProductSummary.cshtml"
            AddHtmlAttributeValue("", 421, Model.ProductTypeName, 421, 22, 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(471, 224, true);
            WriteLiteral("\r\n\t\t</h4>\r\n\t\t<p class=\"card-text\">Some quick example text to build on the card title and make up the bulk of the card\'s content.</p>\r\n\t\t<div class=\"form-row\">\r\n\t\t\t<div class=\"col-6\">\r\n\t\t\t\t<p class=\"btn btn-danger btn-block\">");
            EndContext();
            BeginContext(696, 34, false);
#line 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\ProductSummary.cshtml"
            Write(CurrencyFormat.Format(Model.Price));

#line default
#line hidden
            EndContext();
            BeginContext(730, 45, true);
            WriteLiteral("</p>\r\n\t\t\t</div>\r\n\t\t\t<div class=\"col-6\">\r\n\t\t\t\t");
            EndContext();
            BeginContext(775, 205, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ddafc729378062637e09a5810f29060231e4a4cc13432", async() => {
                BeginContext(957, 19, true);
                WriteLiteral("\r\n\t\t\t\t\tDetail\r\n\t\t\t\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_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-sellerId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
            }
            BeginWriteTagHelperAttribute();
#line 18 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\ProductSummary.cshtml"
            WriteLiteral(Model.SellerId);

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["sellerId"] = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-sellerId", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["sellerId"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            BeginWriteTagHelperAttribute();
#line 18 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\ProductSummary.cshtml"
            WriteLiteral(Model.ProductTypeId);

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

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(980, 38, true);
            WriteLiteral("\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(37, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
            ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];

#line default
#line hidden
            BeginContext(137, 288, true);
            WriteLiteral(@"
<div class=""table-responsive rounded"">
	<table class=""table table-striped table-bordered table-hover table-condensed table-sm table-secondary table-active"">
		<thead class=""thead-dark"">
			<tr>
				<th class=""w-25""></th>
				<th>Product Type</th>
			</tr>
		</thead>
		<tbody>
");
            EndContext();
#line 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
            foreach (ProductTypeView productType in Model)
            {
                ProductView product = eCommerce.GetRepresentativeProduct(int.Parse(productType.Id));
                if (product == null)
                {
                    product = new ProductView
                    {
                        ProductTypeName = productType.Name,
                        ProductTypeId   = productType.Id
                    };
                }

#line default
#line hidden
                BeginContext(737, 44, true);
                WriteLiteral("\t\t\t\t<tr class=\"productTypeRow\">\r\n\t\t\t\t\t<td>\r\n");
                EndContext();
#line 27 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                if (product.RepresentativeImage != null)
                {
#line default
#line hidden
                    BeginContext(837, 6, true);
                    WriteLiteral("\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(843, 107, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c16fd342e33c31a658c5b787772e58cd3a8d376e8397", async() => {
                    }
                                                                                );
                    __ECommerce_UI_MVC_Infrastructure_ImageTagHelper = CreateTagHelper <global::ECommerce.UI.MVC.Infrastructure.ImageTagHelper>();
                    __tagHelperExecutionContext.Add(__ECommerce_UI_MVC_Infrastructure_ImageTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 29 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                    __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent = product.RepresentativeImage;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 29 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                    AddHtmlAttributeValue("", 922, product.ProductTypeName, 922, 24, 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(950, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 30 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(979, 6, true);
                    WriteLiteral("\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(985, 90, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c16fd342e33c31a658c5b787772e58cd3a8d376e10735", async() => {
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 33 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                    AddHtmlAttributeValue("", 1047, product.ProductTypeName, 1047, 24, 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(1075, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 34 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                }

#line default
#line hidden
                BeginContext(1085, 6, true);
                WriteLiteral("\t\t\t\t\t\t");
                EndContext();
                BeginContext(1091, 151, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c16fd342e33c31a658c5b787772e58cd3a8d376e12726", async() => {
                    BeginContext(1232, 6, true);
                    WriteLiteral("Choose");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                BeginWriteTagHelperAttribute();
#line 35 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                WriteLiteral(ViewBag.Action);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-action", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                BeginWriteTagHelperAttribute();
#line 35 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                WriteLiteral(ViewBag.Controller);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-controller", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-productTypeId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 35 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                WriteLiteral(product.ProductTypeId);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1242, 35, true);
                WriteLiteral("\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t<h4>");
                EndContext();
                BeginContext(1278, 23, false);
#line 38 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                Write(product.ProductTypeName);

#line default
#line hidden
                EndContext();
                BeginContext(1301, 350, true);
                WriteLiteral(@"</h4>
						<p>
							descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions descriptions
						</p>
");
                EndContext();
#line 42 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"

                int categoryId = int.Parse(eCommerce.GetProductTypeBy(int.Parse(product.ProductTypeId)).CategoryId);

#line default
#line hidden
                BeginContext(1771, 24, true);
                WriteLiteral("\t\t\t\t\t\t\t<small>\r\n\t\t\t\t\t\t\t\t");
                EndContext();
                BeginContext(1796, 69, false);
#line 45 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
                Write(await Component.InvokeAsync("CategoryBreadCrumb", new { categoryId }));

#line default
#line hidden
                EndContext();
                BeginContext(1865, 19, true);
                WriteLiteral("\r\n\t\t\t\t\t\t\t</small>\r\n");
                EndContext();
                BeginContext(1893, 23, true);
                WriteLiteral("\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n");
                EndContext();
#line 50 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\SelectProductTypeTable.cshtml"
            }

#line default
#line hidden
            BeginContext(1922, 29, true);
            WriteLiteral("\t\t</tbody>\r\n\t</table>\r\n</div>");
            EndContext();
        }
Ejemplo n.º 4
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(30, 466, true);
            WriteLiteral(@"
<div class=""table-responsive rounded"">
	<table class=""table table-striped table-bordered table-hover table-condensed table-sm table-active table-secondary"">
		<thead class=""thead-dark"">
			<tr>
				<th style=""width:30%;""></th>
				<th style=""width:12%;"">Name</th>
				<th style=""width:12%;"">Price</th>
				<th style=""width:12%;"">Quantity</th>
				<th style=""width:12%;"">Active</th>
				<th style=""width:12%;"">Status</th>
			</tr>
		</thead>
		<tbody>
");
            EndContext();
#line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"

            ECommerceService eCommerce  = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            string           formAction = Url.Action("ChangeProductActive", "Seller");
            foreach (ProductView product in Model.Products)
            {
#line default
#line hidden
                BeginContext(728, 51, true);
                WriteLiteral("\t\t\t\t\t<tr class=\"sellerProductTableRow\">\r\n\t\t\t\t\t\t<td>");
                EndContext();
                BeginContext(779, 50, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "7a85f1824d96d6efa75d4eecf05f7e2b513d81d49277", async() => {
                }
                                                                            );
                __ECommerce_UI_MVC_Infrastructure_ImageTagHelper = CreateTagHelper <global::ECommerce.UI.MVC.Infrastructure.ImageTagHelper>();
                __tagHelperExecutionContext.Add(__ECommerce_UI_MVC_Infrastructure_ImageTagHelper);
#line 22 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent = product.RepresentativeImage;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent, 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(829, 17, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td>");
                EndContext();
                BeginContext(847, 23, false);
#line 23 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                Write(product.ProductTypeName);

#line default
#line hidden
                EndContext();
                BeginContext(870, 17, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td>");
                EndContext();
                BeginContext(888, 36, false);
#line 24 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                Write(CurrencyFormat.Format(product.Price));

#line default
#line hidden
                EndContext();
                BeginContext(924, 17, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td>");
                EndContext();
                BeginContext(942, 16, false);
#line 25 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                Write(product.Quantity);

#line default
#line hidden
                EndContext();
                BeginContext(958, 26, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t");
                EndContext();
                BeginContext(984, 472, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7a85f1824d96d6efa75d4eecf05f7e2b513d81d411911", async() => {
                    BeginContext(1025, 51, true);
                    WriteLiteral("\r\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"productTypeId\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 1076, "\"", 1106, 1);
#line 28 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                    WriteAttributeValue("", 1084, product.ProductTypeId, 1084, 22, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1107, 20, true);
                    WriteLiteral(" />\r\n\t\t\t\t\t\t\t\t<input ");
                    EndContext();
                    BeginContext(1129, 31, false);
#line 29 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                    Write(product.Active ? "checked" : "");

#line default
#line hidden
                    EndContext();
                    BeginContext(1161, 288, true);
                    WriteLiteral(@" class=""submitOnChange"" name=""active""
										type=""checkbox"" data-toggle=""toggle"" value=""true""
										data-onstyle=""success"" data-offstyle=""danger"" data-size=""small""
										data-on=""<i class='fas fa-lock-open'></i>""
										data-off=""<i class='fa fa-lock'></i>"" />
							"                            );
                    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);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 27 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                AddHtmlAttributeValue("", 998, formAction, 998, 11, false);

#line default
#line hidden
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (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(1456, 25, true);
                WriteLiteral("\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>");
                EndContext();
                BeginContext(1482, 14, false);
#line 36 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                Write(product.Status);

#line default
#line hidden
                EndContext();
                BeginContext(1496, 26, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t");
                EndContext();
                BeginContext(1522, 111, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7a85f1824d96d6efa75d4eecf05f7e2b513d81d415617", async() => {
                    BeginContext(1625, 4, true);
                    WriteLiteral("Edit");
                    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);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-productTypeId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 38 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                WriteLiteral(product.ProductTypeId);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1633, 97, true);
                WriteLiteral("\r\n\t\t\t\t\t\t\t<a href=\"#\" class=\"btn btn-danger\">Change Operating Model</a>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n");
                EndContext();
#line 42 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
            }


#line default
#line hidden
            BeginContext(1743, 33, true);
            WriteLiteral("\t\t</tbody>\r\n\t</table>\r\n</div>\r\n\r\n");
            EndContext();
            BeginContext(1776, 233, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7a85f1824d96d6efa75d4eecf05f7e2b513d81d418518", async() => {
                BeginContext(2001, 2, true);
                WriteLiteral("\r\n");
                EndContext();
            }
                                                                        );
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper = CreateTagHelper <global::ECommerce.UI.MVC.Infrastructure.PageLinkTagHelper>();
            __tagHelperExecutionContext.Add(__ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper);
#line 48 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageModel = Model.PagingInfo;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            BeginWriteTagHelperAttribute();
#line 48 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
            WriteLiteral(ViewContext.RouteData.Values["Action"].ToString());

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageAction = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("page-action", __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageAction, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClass = (string)__tagHelperAttribute_4.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassNormal = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassSelected = (string)__tagHelperAttribute_6.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassDisabled = (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(2009, 470, true);
            WriteLiteral(@"

<script type=""text/javascript"">
	//change user state

	$('.submitOnChange').change(function () {
		var $form = $(this).closest('form');
		$.ajax({
			url: $form.attr('action'),
			type: $form.attr('method'),
			data: $form.serialize(),
			success: function (result) {
				if (result != '')
					alert(result);
			},
			error: function (result) {
				alert('something went wrong while changing product active:\n' + result);
			}
		});
	});
</script>");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(20, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];

#line default
#line hidden
            BeginContext(119, 271, true);
            WriteLiteral(@"<div class=""container"">
	<div class=""card productDetailCard"">
		<div class=""container-fliud"">
			<div class=""wrapper row"">
				<div class=""preview col-md-6"">
					<div id=""galleryResult"" class=""preview-pic tab-content"">
						<div class=""galleryThumbnail"">
							"                            );
            EndContext();
            BeginContext(390, 65, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "6a909afef7e73aa8c36f2ab68dec039b16c38fbe9627", async() => {
            }
                                                                        );
            __ECommerce_UI_MVC_Infrastructure_ImageTagHelper = CreateTagHelper <global::ECommerce.UI.MVC.Infrastructure.ImageTagHelper>();
            __tagHelperExecutionContext.Add(__ECommerce_UI_MVC_Infrastructure_ImageTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent = Model.RepresentativeImage;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent, 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(455, 203, true);
            WriteLiteral("\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div id=\"carouselExampleControls\" class=\"preview-thumbnail nav nav-tabs carousel slide\" data-ride=\"carousel\" data-interval=\"false\">\r\n\t\t\t\t\t\t<div class=\"carousel-inner\">\r\n");
            EndContext();
#line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"

            IList <FileContent> images = eCommerce.GetProductImages(int.Parse(Model.SellerId), int.Parse(Model.ProductTypeId)).ToList();
            short      count           = 1;
            TagBuilder container       = new TagBuilder("div");
            TagBuilder carouselItem    = new TagBuilder("div");
            carouselItem.AddCssClass("carousel-item active");
            container.InnerHtml.AppendHtml(carouselItem);
            foreach (FileContent image in images)
            {
                carouselItem.InnerHtml
                .AppendHtml($"<div class=\"galleryThumbnail\"><img src=\"{image.EncodeInBase64()}\" /></div>");
                if (count++ == 5)
                {
                    carouselItem = new TagBuilder("div");
                    carouselItem.AddCssClass("carousel-item active");
                    container.InnerHtml.AppendHtml(carouselItem);
                    count = 1;
                }
            }


#line default
#line hidden
            BeginContext(1515, 7, true);
            WriteLiteral("\t\t\t\t\t\t\t");
            EndContext();
            BeginContext(1523, 19, false);
#line 36 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            Write(container.InnerHtml);

#line default
#line hidden
            EndContext();
            BeginContext(1542, 560, true);
            WriteLiteral(@"
						</div>
						<a class=""carousel-control-prev"" href=""#carouselExampleControls"" role=""button"" data-slide=""prev"">
							<span class=""carousel-control-prev-icon"" aria-hidden=""true""></span>
							<span class=""sr-only"">Previous</span>
						</a>
						<a class=""carousel-control-next"" href=""#carouselExampleControls"" role=""button"" data-slide=""next"">
							<span class=""carousel-control-next-icon"" aria-hidden=""true""></span>
							<span class=""sr-only"">Next</span>
						</a>
					</div>
				</div>
				<div class=""details col-md-6"">
					<h3>"                    );
            EndContext();
            BeginContext(2102, 166, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6a909afef7e73aa8c36f2ab68dec039b16c38fbe13542", async() => {
                BeginContext(2243, 21, false);
#line 49 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                Write(Model.ProductTypeName);

#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_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-productTypeId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
            }
            BeginWriteTagHelperAttribute();
#line 49 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            WriteLiteral(Model.ProductTypeId);

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

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(2268, 570, true);
            WriteLiteral(@"</h3>
					<div>
						<div>
							<span class=""fa fa-star checked""></span>
							<span class=""fa fa-star checked""></span>
							<span class=""fa fa-star checked""></span>
							<span class=""fa fa-star""></span>
							<span class=""fa fa-star""></span>
						</div>
						<span>41 reviews</span>
					</div>
					<p>Suspendisse quos? Tempus cras iure temporibus? Eu laudantium cubilia sem sem! Repudiandae et! Massa senectus enim minim sociosqu delectus posuere.</p>
					<h4 class=""font-weight-bold text-uppercase"">current price: <span class=""text-warning"">"                    );
            EndContext();
            BeginContext(2839, 42, false);
#line 61 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            Write(CurrencyFormat.FormatWithUnit(Model.Price));

#line default
#line hidden
            EndContext();
            BeginContext(2881, 71, true);
            WriteLiteral("</span></h4>\r\n\t\t\t\t\t<h4 class=\"font-weight-bold text-uppercase\">SELLER: ");
            EndContext();
            BeginContext(2952, 127, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6a909afef7e73aa8c36f2ab68dec039b16c38fbe17716", async() => {
                BeginContext(3059, 16, false);
#line 62 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                Write(Model.SellerName);

#line default
#line hidden
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-sellerId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
            }
            BeginWriteTagHelperAttribute();
#line 62 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            WriteLiteral(Model.SellerId);

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["sellerId"] = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-sellerId", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["sellerId"], 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(3079, 119, true);
            WriteLiteral("</h4>\r\n\t\t\t\t\t<p class=\"vote\"><strong>91%</strong> of buyers enjoyed this product! <strong>(87 votes)</strong></p>\r\n\t\t\t\t\t");
            EndContext();
            BeginContext(3198, 1044, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6a909afef7e73aa8c36f2ab68dec039b16c38fbe20935", async() => {
                BeginContext(3289, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 65 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                foreach (var attribute in Model.Attributes)
                {
#line default
#line hidden
                    BeginContext(3352, 61, true);
                    WriteLiteral("\t\t\t\t\t\t\t<h5 class=\"font-weight-bold text-uppercase\">\r\n\t\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(3414, 13, false);
#line 68 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                    Write(attribute.Key);

#line default
#line hidden
                    EndContext();
                    BeginContext(3427, 3, true);
                    WriteLiteral(":\r\n");
                    EndContext();
#line 69 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                    foreach (var value in attribute.Value)
                    {
#line default
#line hidden
                        BeginContext(3490, 86, true);
                        WriteLiteral("\t\t\t\t\t\t\t\t\t<label class=\"radio-inline text-info\">\r\n\t\t\t\t\t\t\t\t\t\t<input checked type=\"radio\"");
                        EndContext();
                        BeginWriteAttribute("name", " name=\"", 3576, "\"", 3609, 3);
                        WriteAttributeValue("", 3583, "attributes[", 3583, 11, true);
#line 72 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                        WriteAttributeValue("", 3594, attribute.Key, 3594, 14, false);

#line default
#line hidden
                        WriteAttributeValue("", 3608, "]", 3608, 1, true);
                        EndWriteAttribute();
                        BeginWriteAttribute("value", " value=\"", 3610, "\"", 3624, 1);
#line 72 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                        WriteAttributeValue("", 3618, value, 3618, 6, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(3625, 4, true);
                        WriteLiteral(" /> ");
                        EndContext();
                        BeginContext(3630, 5, false);
#line 72 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                        Write(value);

#line default
#line hidden
                        EndContext();
                        BeginContext(3635, 21, true);
                        WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t</label>\r\n");
                        EndContext();
#line 74 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                    }

#line default
#line hidden
                    BeginContext(3667, 14, true);
                    WriteLiteral("\t\t\t\t\t\t\t</h5>\r\n");
                    EndContext();
#line 76 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                }

#line default
#line hidden
                BeginContext(3690, 223, true);
                WriteLiteral("\t\t\t\t\t\t<div class=\"form-row\">\r\n\t\t\t\t\t\t\t<div class=\"form-group col-md-3\">\r\n\t\t\t\t\t\t\t\t<input class=\"form-control\" type=\"number\" name=\"quantity\" value=\"1\" />\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"sellerId\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 3913, "\"", 3936, 1);
#line 82 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                WriteAttributeValue("", 3921, Model.SellerId, 3921, 15, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(3937, 52, true);
                WriteLiteral(" />\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"productTypeId\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 3989, "\"", 4017, 1);
#line 83 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                WriteAttributeValue("", 3997, Model.ProductTypeId, 3997, 20, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(4018, 217, true);
                WriteLiteral(" />\r\n\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t<input class=\"btn btn-lg btn-success\" type=\"submit\" value=\"Add to Cart\" />\r\n\t\t\t\t\t\t\t<button class=\"btn btn-lg btn-danger\" type=\"button\"><i class=\"fa fa-heart\"></i></button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t");
                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.Action = (string)__tagHelperAttribute_6.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_7.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_8.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__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(4242, 877, true);
            WriteLiteral(@"
				</div>
			</div>
		</div>
	</div>
</div>

<script type=""text/javascript"">

	//small cart updating
	function updateSmallCart() {
		$.ajax({
			url: $('#cartTotalQuantityUrl').val(),
			type: 'get',
			success: function (result) {
				$('#cartQuantity').html(result);
			}
		});
	}

	$('.addToCartOnSubmit').submit(
		function (event) {
			// Stop form from submitting normally
			event.preventDefault();
			var $form = $(this);
			$.ajax({
				url: $form.attr('action'),
				type: $form.attr('method'),
				data: $form.serialize(),
				success: function () {
					updateSmallCart();
				},
				error: function (result) {
					alert('something went wrong while adding to cart:\n' + result);
				}
			});
		});

	//product detail

	$('.galleryThumbnail').click(function(){
		$('#galleryResult').html($(this).clone());
	});
</script>");
            EndContext();
        }