Example #1
0
        public IActionResult Index(int productTypeId, short productAttributesNumber = 3)
        {
            ICollection <string> errors      = new List <string>();
            ProductTypeView      productType = eCommerce.GetProductTypeBy(productTypeId);

            if (productType != null)
            {
                if (productType.Status == ProductTypeStatus.Locked)
                {
                    errors.Add("Product is unavailable at the moment");
                }
            }
            else
            {
                errors.Add("Could not found product type");
            }

            if (errors.Any())
            {
                ViewData[GlobalViewBagKeys.Errors] = errors;
                return(RedirectToAction("SelectProductType"));
            }

            ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce;
            return(View(new RegisterProductViewModel
            {
                AddModel = new ProductAddModel
                {
                    ProductTypeId = productTypeId
                },
                ProductAttributesNumber = productAttributesNumber
            }));
        }
Example #2
0
        public IActionResult UpdateProduct(int productTypeId, short productAttributesNumber = 3)
        {
            SellerView seller = loginPersistence.PersistLogin();

            var             errors      = new List <string>();
            ProductTypeView productType = eCommerce.GetProductTypeBy(productTypeId);

            if (productType == null)
            {
                errors.Add("Could not found product type");
            }

            if (errors.Any())
            {
                ViewData[GlobalViewBagKeys.Errors] = errors;
                return(RedirectToAction("Product"));
            }

            ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce;
            return(View(new UpdateProductViewModel
            {
                ProductTypeId = productTypeId,
                UpdateModel = eCommerce.GetProductUpdateModelBy(int.Parse(seller.Id), productTypeId),
                ProductAttributesNumber = productAttributesNumber
            }));
        }
        public IActionResult Index(int productTypeId)
        {
            SellerView seller = loginPersistence.PersistLogin();

            var             errors      = new List <string>();
            ProductTypeView productType = eCommerce.GetProductTypeBy(productTypeId);

            if (productType != null)
            {
                if (productType.Status == ProductTypeStatus.Locked)
                {
                    errors.Add("Product is unavailable at the moment");
                }
            }
            else
            {
                errors.Add("Could not found product type");
            }

            if (errors.Any())
            {
                ViewData[GlobalViewBagKeys.Errors] = errors;
                return(RedirectToAction("SelectProductType"));
            }

            ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce;
            ProductTypeUpdateRequestView     updateRequest = eCommerce.GetProductTypeUpdateRequestBy(int.Parse(seller.Id), int.Parse(productType.Id));
            ProductTypeUpdateRequestAddModel addModel      = new ProductTypeUpdateRequestAddModel();

            if (updateRequest != null)
            {
                if (updateRequest.CategoryId != null)
                {
                    addModel.CategoryId = int.Parse(updateRequest.CategoryId);
                }
                addModel.Name          = updateRequest.Name;
                addModel.ProductTypeId = int.Parse(productType.Id);
                addModel.Descriptions  = updateRequest.Descriptions;
            }
            else
            {
                addModel.CategoryId    = int.Parse(productType.CategoryId);
                addModel.Name          = productType.Name;
                addModel.ProductTypeId = int.Parse(productType.Id);
            }
            return(View(addModel));
        }
Example #4
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(37, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\ProductType\UpdateRequestDetail.cshtml"

            ECommerceService eCommerce   = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            ProductTypeView  productType = eCommerce.GetProductTypeBy(int.Parse(Model.ProductTypeId));

#line default
#line hidden
            BeginContext(233, 78, true);
            WriteLiteral("<h1>Current product type</h1>\r\n<h2><label>Product type name:</label></h2>\r\n<p>");
            EndContext();
            BeginContext(312, 16, false);
#line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\ProductType\UpdateRequestDetail.cshtml"
            Write(productType.Name);

#line default
#line hidden
            EndContext();
            BeginContext(328, 54, true);
            WriteLiteral("</p>\r\n<h2><label>Product type category:</label></h2>\r\n");
            EndContext();
            BeginContext(383, 105, false);
#line 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\ProductType\UpdateRequestDetail.cshtml"
            Write(await Component.InvokeAsync("CategoryBreadCrumb", new { categoryId = int.Parse(productType.CategoryId) }));

#line default
#line hidden
            EndContext();
            BeginContext(488, 41, true);
            WriteLiteral("\r\n<hr />\r\n<h1>Update request info:</h1>\r\n");
            EndContext();
            BeginContext(530, 63, false);
#line 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\ProductType\UpdateRequestDetail.cshtml"
            Write(await Html.PartialAsync("ProductTypeUpdateRequestDetail", Model));

#line default
#line hidden
            EndContext();
            BeginContext(593, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(595, 303, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "78b6eb15195a326f064d4cd32349a9a00ad39fff7821", async() => {
                BeginContext(676, 39, true);
                WriteLiteral("\r\n\t<input type=\"hidden\" name=\"sellerId\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 715, "\"", 738, 1);
#line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\ProductType\UpdateRequestDetail.cshtml"
                WriteAttributeValue("", 723, Model.SellerId, 723, 15, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(739, 47, true);
                WriteLiteral(" />\r\n\t<input type=\"hidden\" name=\"productTypeId\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 786, "\"", 814, 1);
#line 17 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\ProductType\UpdateRequestDetail.cshtml"
                WriteAttributeValue("", 794, Model.ProductTypeId, 794, 20, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(815, 76, true);
                WriteLiteral(" />\r\n\t<input type=\"submit\" value=\"Apply update\" class=\"btn btn-success\" />\r\n");
                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_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
        }
Example #6
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(33, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"

            ECommerceService eCommerce   = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            ProductTypeView  productType = eCommerce.GetProductTypeBy(Model.AddModel.ProductTypeId);

#line default
#line hidden
            BeginContext(224, 5, true);
            WriteLiteral("\t<h1>");
            EndContext();
            BeginContext(230, 16, false);
#line 6 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
            Write(productType.Name);

#line default
#line hidden
            EndContext();
            BeginContext(246, 7, true);
            WriteLiteral("</h1>\r\n");
            EndContext();
            BeginContext(256, 2996, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "58edaf3b29ee57ff49a0d048804f99a53bd781429842", async() => {
                BeginContext(325, 3, true);
                WriteLiteral("\r\n\t");
                EndContext();
                BeginContext(328, 66, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "58edaf3b29ee57ff49a0d048804f99a53bd7814210225", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper);
#line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary = global::Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary.ModelOnly;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-summary", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(394, 5, true);
                WriteLiteral("\r\n\r\n\t");
                EndContext();
                BeginContext(399, 56, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "58edaf3b29ee57ff49a0d048804f99a53bd7814212019", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.AddModel.ProductTypeId);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, 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, 33, true);
                WriteLiteral("\r\n\r\n\t<div class=\"form-group\">\r\n\t\t");
                EndContext();
                BeginContext(488, 62, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "58edaf3b29ee57ff49a0d048804f99a53bd7814213899", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#line 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.AddModel.Price);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, 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(550, 4, true);
                WriteLiteral("\r\n\t\t");
                EndContext();
                BeginContext(554, 55, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "58edaf3b29ee57ff49a0d048804f99a53bd7814215611", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#line 15 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.AddModel.Price);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, 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(609, 4, true);
                WriteLiteral("\r\n\t\t");
                EndContext();
                BeginContext(613, 69, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "58edaf3b29ee57ff49a0d048804f99a53bd7814217317", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.AddModel.Price);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(682, 42, true);
                WriteLiteral("\r\n\t</div>\r\n\r\n\t<div class=\"form-group\">\r\n\t\t");
                EndContext();
                BeginContext(724, 62, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "58edaf3b29ee57ff49a0d048804f99a53bd7814219148", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#line 20 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.AddModel.Model);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, 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(786, 4, true);
                WriteLiteral("\r\n\t\t");
                EndContext();
                BeginContext(790, 95, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("select", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "58edaf3b29ee57ff49a0d048804f99a53bd7814220860", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.SelectTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper);
#line 21 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.AddModel.Model);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 21 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper.Items = Html.GetEnumSelectList <OperatingModel>();

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-items", __Microsoft_AspNetCore_Mvc_TagHelpers_SelectTagHelper.Items, 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(885, 4, true);
                WriteLiteral("\r\n\t\t");
                EndContext();
                BeginContext(889, 69, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "58edaf3b29ee57ff49a0d048804f99a53bd7814222950", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#line 22 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.AddModel.Model);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(958, 256, true);
                WriteLiteral(@"
	</div>

	<table class=""table table-striped table-bordered table-hover table-condensed table-sm table-active table-secondary mw-100"">
		<thead class=""thead-dark"">
			<tr>
				<th>Attribute</th>
				<th>Values</th>
			</tr>
		</thead>
		<tbody>
");
                EndContext();
#line 33 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"

                short attributeCount = 0;
                if (Model.AddModel.Attributes != null)
                {
                    foreach (var attribute in Model.AddModel.Attributes)
                    {
#line default
#line hidden
                        BeginContext(1370, 74, true);
                        WriteLiteral("\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td><input name=\"keys\" class=\"form-control\" type=\"text\"");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 1444, "\"", 1466, 1);
#line 40 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                        WriteAttributeValue("", 1452, attribute.Key, 1452, 14, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(1467, 63, true);
                        WriteLiteral(" /></td>\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t<input name=\"values\" type=\"text\"");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 1530, "\"", 1572, 1);
#line 42 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                        WriteAttributeValue("", 1538, string.Join(',', attribute.Value), 1538, 34, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(1573, 54, true);
                        WriteLiteral(" data-role=\"tagsinput\" />\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>\r\n");
                        EndContext();
#line 45 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                        attributeCount++;
                    }
                }
                while (attributeCount++ < Model.ProductAttributesNumber)
                {
#line default
#line hidden
                    BeginContext(1736, 185, true);
                    WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td><input name=\"keys\" class=\"form-control\" type=\"text\" /></td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<input name=\"values\" type=\"text\" data-role=\"tagsinput\" />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n");
                    EndContext();
#line 56 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                }


#line default
#line hidden
                BeginContext(1934, 251, true);
                WriteLiteral("\t\t<tbody>\r\n\t\t<tfoot>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\" class=\"changeAttributeNumber\">\r\n\t\t\t\t\t<div class=\"input-group\">\r\n\t\t\t\t\t\t<div class=\"input-group-prepend\">\r\n\t\t\t\t\t\t\t<span class=\"input-group-text\">Change attribute number here</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t");
                EndContext();
                BeginContext(2185, 105, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "58edaf3b29ee57ff49a0d048804f99a53bd7814227686", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
#line 66 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProductAttributesNumber);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2290, 61, true);
                WriteLiteral("\r\n\t\t\t\t\t\t<input type=\"hidden\" class=\"changeAttributeNumberUrl\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 2351, "\"", 2433, 1);
#line 67 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\RegisterProduct\Index.cshtml"
                WriteAttributeValue("", 2359, Url.Action("Index", new { productTypeId = Model.AddModel.ProductTypeId }), 2359, 74, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2434, 811, true);
                WriteLiteral(@" />
						<div class=""input-group-append"">
							<button class=""changeAttributeNumberBtn btn btn-primary"">Change</button>
						</div>
					</div>
				</td>
			</tr>
		</tfoot>
	</table>

	<div class=""form-group"">
		<label class=""control-label"">Product's representative image:</label>
		<div class=""file-loading"">
			<input class=""file registerProductFileInput"" name=""representativeImage"" type=""file"" />
		</div>
	</div>

	<div class=""form-group"">
		<label class=""control-label"">Product's images:</label>
		<div class=""file-loading"">
			<input class=""file registerProductFileInput"" name=""images"" type=""file"" multiple />
		</div>
	</div>

	<input type=""submit"" value=""Register product"" class=""btn btn-success"" />
	<input type=""reset"" class=""btn btn-outline-secondary"" value=""Reset"" />
");
                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.Method = (string)__tagHelperAttribute_7.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(3252, 736, true);
            WriteLiteral(@"

<script type=""text/javascript"">
	//change attribute number on click
	$('.changeAttributeNumberBtn').click(function (event) {
		event.preventDefault();

		$container = $(this).closest('.changeAttributeNumber');

		$value = $container.find('.changeAttributeNumberValue').val();

		$link = $container.find('.changeAttributeNumberUrl').val();

		window.location.replace($link + '&productAttributesNumber=' + $value);
	});

	//upload images
	$('.registerProductFileInput').fileinput({
        allowedFileExtensions: ['jpg', 'png', 'gif', 'jpeg'],
		removeClass: 'btn btn-danger',
		showUpload: false,
		allowedFileTypes: ['image'],
		maxFileSize: '2000',
		theme: 'fas',
		browseOnZoneClick: 'true'
	});
</script>");
            EndContext();
        }
Example #7
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(33, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
            ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];

#line default
#line hidden
            BeginContext(133, 371, 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>Seller</th>
				<th>Product Type</th>
				<th>Price</th>
				<th>Active</th>
				<th>Status</th>
			</tr>
		</thead>
		<tbody>
");
            EndContext();
#line 18 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
            string formAction = Url.Action("ChangeStatus", "Product");

#line default
#line hidden
            BeginContext(569, 3, true);
            WriteLiteral("\t\t\t");
            EndContext();
#line 19 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
            foreach (ProductView product in Model)
            {
#line default
#line hidden
                BeginContext(619, 42, true);
                WriteLiteral("\t\t\t\t<tr class=\"productTypeRow\">\r\n\t\t\t\t\t<td>");
                EndContext();
                BeginContext(661, 108, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c76781d66c674e6fd7a2cd9c3cefe2516bd1660710603", async() => {
                }
                                                                            );
                __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper = CreateTagHelper <global::ECommerce.UI.AdminSite.Infrastructure.ImageTagHelper>();
                __tagHelperExecutionContext.Add(__ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 22 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent = product.RepresentativeImage;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 22 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                AddHtmlAttributeValue("", 741, product.ProductTypeName, 741, 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(769, 16, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t<td>");
                EndContext();
                BeginContext(785, 144, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c76781d66c674e6fd7a2cd9c3cefe2516bd1660712696", async() => {
                    BeginContext(907, 18, false);
#line 23 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                    Write(product.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);
                __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 23 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                WriteLiteral(product.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);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(929, 24, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t");
                EndContext();
                BeginContext(953, 173, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c76781d66c674e6fd7a2cd9c3cefe2516bd1660715733", async() => {
                    BeginContext(1089, 4, true);
                    WriteLiteral("<h4>");
                    EndContext();
                    BeginContext(1094, 23, false);
#line 25 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                    Write(product.ProductTypeName);

#line default
#line hidden
                    EndContext();
                    BeginContext(1117, 5, true);
                    WriteLiteral("</h4>");
                    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);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-productTypeId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 25 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.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_3);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1126, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 26 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"

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

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

#line default
#line hidden
                EndContext();
                BeginContext(1341, 19, true);
                WriteLiteral("\r\n\t\t\t\t\t\t\t</small>\r\n");
                EndContext();
                BeginContext(1369, 21, true);
                WriteLiteral("\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>");
                EndContext();
                BeginContext(1391, 36, false);
#line 33 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                Write(CurrencyFormat.Format(product.Price));

#line default
#line hidden
                EndContext();
                BeginContext(1427, 31, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t<input ");
                EndContext();
                BeginContext(1460, 31, false);
#line 35 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                Write(product.Active ? "checked" : "");

#line default
#line hidden
                EndContext();
                BeginContext(1492, 282, true);
                WriteLiteral(@"
							   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>"" disabled />
					</td>
					<td>
						"                        );
                EndContext();
                BeginContext(1774, 349, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c76781d66c674e6fd7a2cd9c3cefe2516bd1660721173", async() => {
                    BeginContext(1814, 45, true);
                    WriteLiteral("\r\n\t\t\t\t\t\t\t<input name=\"sellerId\" type=\"hidden\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 1859, "\"", 1884, 1);
#line 43 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                    WriteAttributeValue("", 1867, product.SellerId, 1867, 17, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1885, 53, true);
                    WriteLiteral(" />\r\n\t\t\t\t\t\t\t<input name=\"productTypeId\" type=\"hidden\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 1938, "\"", 1968, 1);
#line 44 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                    WriteAttributeValue("", 1946, product.ProductTypeId, 1946, 22, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1969, 12, true);
                    WriteLiteral(" />\r\n\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(1981, 127, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("select", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c76781d66c674e6fd7a2cd9c3cefe2516bd1660722603", async() => {
                    }
                                                                                );
                    __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper = CreateTagHelper <global::ECommerce.UI.AdminSite.Infrastructure.EnumSelectListTagHelper>();
                    __tagHelperExecutionContext.Add(__ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
#line 45 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                    __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper.EnumType = typeof(ProductStatus);

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("enum-type", __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper.EnumType, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 45 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                    __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper.Selected = product.Status;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("selected", __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper.Selected, 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(2108, 8, true);
                    WriteLiteral("\r\n\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);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 42 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                AddHtmlAttributeValue("", 1788, formAction, 1788, 11, false);

#line default
#line hidden
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2123, 23, true);
                WriteLiteral("\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>");
                EndContext();
                BeginContext(2146, 170, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c76781d66c674e6fd7a2cd9c3cefe2516bd1660726663", async() => {
                    BeginContext(2306, 6, true);
                    WriteLiteral("Detail");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_10.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-sellerId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 48 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
                WriteLiteral(product.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 48 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.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);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2316, 18, true);
                WriteLiteral("</td>\r\n\t\t\t\t</tr>\r\n");
                EndContext();
#line 50 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductsTable.cshtml"
            }

#line default
#line hidden
            BeginContext(2340, 503, true);
            WriteLiteral(@"		</tbody>
	</table>
</div>

<script type=""text/javascript"">
	//change product status

	$('.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 status:\n' + result);
			}
		});
	});
</script>");
            EndContext();
        }
        public IActionResult Informations(int productTypeId)
        {
            ProductTypeView productType = eCommerce.GetProductTypeBy(productTypeId);

            return(productType != null?View(productType) : (IActionResult)NotFound());
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(41, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\UpdateProductType\Index.cshtml"

            ECommerceService eCommerce   = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            ProductTypeView  productType = eCommerce.GetProductTypeBy(Model.ProductTypeId);

#line default
#line hidden
            BeginContext(226, 78, true);
            WriteLiteral("<h1>Current product type</h1>\r\n<h2><label>Product type name:</label></h2>\r\n<p>");
            EndContext();
            BeginContext(305, 16, false);
#line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\UpdateProductType\Index.cshtml"
            Write(productType.Name);

#line default
#line hidden
            EndContext();
            BeginContext(321, 54, true);
            WriteLiteral("</p>\r\n<h2><label>Product type category:</label></h2>\r\n");
            EndContext();
            BeginContext(376, 105, false);
#line 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\UpdateProductType\Index.cshtml"
            Write(await Component.InvokeAsync("CategoryBreadCrumb", new { categoryId = int.Parse(productType.CategoryId) }));

#line default
#line hidden
            EndContext();
            BeginContext(481, 41, true);
            WriteLiteral("\r\n<hr />\r\n<h1>Update request info:</h1>\r\n");
            EndContext();
            BeginContext(522, 154, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4db39d4cc3d7f19613c185881107bd03547761237359", async() => {
                BeginContext(561, 3, true);
                WriteLiteral("\r\n\t");
                EndContext();
                BeginContext(565, 55, false);
#line 15 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\UpdateProductType\Index.cshtml"
                Write(Html.EditorForModel("ProductTypeUpdateRequestAddModel"));

#line default
#line hidden
                EndContext();
                BeginContext(620, 49, true);
                WriteLiteral("\r\n\t<input type=\"submit\" value=\"Send request\" />\r\n");
                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_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __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();
        }
Example #10
0
        #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.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
            ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];

#line default
#line hidden
            BeginContext(136, 329, 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>Name</th>
				<th>Date Modified</th>
				<th>Status</th>
			</tr>
		</thead>
		<tbody>
");
            EndContext();
#line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
            string formAction = Url.Action("ChangeStatus", "ProductType");

#line default
#line hidden
            BeginContext(535, 3, true);
            WriteLiteral("\t\t\t");
            EndContext();
#line 17 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.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(847, 44, true);
                WriteLiteral("\t\t\t\t<tr class=\"productTypeRow\">\r\n\t\t\t\t\t<td>\r\n");
                EndContext();
#line 30 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                if (product.RepresentativeImage != null)
                {
#line default
#line hidden
                    BeginContext(949, 7, true);
                    WriteLiteral("\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(956, 107, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "e5c9f4d67d46c2923a087e5a8636f17eed6dd70e10469", async() => {
                    }
                                                                                );
                    __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper = CreateTagHelper <global::ECommerce.UI.AdminSite.Infrastructure.ImageTagHelper>();
                    __tagHelperExecutionContext.Add(__ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 32 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                    __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent = product.RepresentativeImage;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 32 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                    AddHtmlAttributeValue("", 1035, product.ProductTypeName, 1035, 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(1063, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 33 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(1095, 7, true);
                    WriteLiteral("\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(1102, 90, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "e5c9f4d67d46c2923a087e5a8636f17eed6dd70e12851", 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 36 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                    AddHtmlAttributeValue("", 1164, product.ProductTypeName, 1164, 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(1192, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 37 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                }

#line default
#line hidden
                BeginContext(1203, 33, true);
                WriteLiteral("\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(1236, 164, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e5c9f4d67d46c2923a087e5a8636f17eed6dd70e14887", async() => {
                    BeginContext(1373, 23, false);
#line 40 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                    Write(product.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_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-productTypeId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 40 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.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_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1400, 7, true);
                WriteLiteral("</h4>\r\n");
                EndContext();
#line 41 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"

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

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

#line default
#line hidden
                EndContext();
                BeginContext(1620, 19, true);
                WriteLiteral("\r\n\t\t\t\t\t\t\t</small>\r\n");
                EndContext();
                BeginContext(1648, 89, true);
                WriteLiteral("\t\t\t\t\t</td>\r\n\t\t\t\t\t<td><input class=\"form-control\" type=\"date\" name=\"dateModified\" readonly");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 1737, "\"", 1793, 1);
#line 48 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                WriteAttributeValue("", 1745, productType.DateModified.ToString("yyyy-MM-dd"), 1745, 48, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1794, 27, true);
                WriteLiteral(" /></td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t");
                EndContext();
                BeginContext(1821, 277, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e5c9f4d67d46c2923a087e5a8636f17eed6dd70e19576", async() => {
                    BeginContext(1862, 50, true);
                    WriteLiteral("\r\n\t\t\t\t\t\t\t<input name=\"productTypeId\" type=\"hidden\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 1912, "\"", 1935, 1);
#line 51 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                    WriteAttributeValue("", 1920, productType.Id, 1920, 15, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1936, 12, true);
                    WriteLiteral(" />\r\n\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(1948, 135, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("select", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e5c9f4d67d46c2923a087e5a8636f17eed6dd70e20493", async() => {
                    }
                                                                                );
                    __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper = CreateTagHelper <global::ECommerce.UI.AdminSite.Infrastructure.EnumSelectListTagHelper>();
                    __tagHelperExecutionContext.Add(__ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
#line 52 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                    __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper.EnumType = typeof(ProductTypeStatus);

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("enum-type", __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper.EnumType, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 52 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                    __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper.Selected = productType.Status;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("selected", __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper.Selected, 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(2083, 8, true);
                    WriteLiteral("\r\n\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);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 50 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
                AddHtmlAttributeValue("", 1835, formAction, 1835, 11, false);

#line default
#line hidden
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2098, 25, true);
                WriteLiteral("\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n");
                EndContext();
#line 56 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypesTable.cshtml"
            }

#line default
#line hidden
            BeginContext(2129, 505, true);
            WriteLiteral(@"		</tbody>
	</table>
</div>

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

	$('.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 type status:\n' + result);
			}
		});
	});
</script>");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(50, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
            ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];

#line default
#line hidden
            BeginContext(149, 309, 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>
				<th>Seller</th>
			</tr>
		</thead>
		<tbody>
");
            EndContext();
#line 15 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
            string formAction = Url.Action("UpdateRequestDetail", "ProductType");

#line default
#line hidden
            BeginContext(535, 3, true);
            WriteLiteral("\t\t\t");
            EndContext();
#line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
            foreach (ProductTypeUpdateRequestView updateRequest in Model)
            {
                ProductTypeView productType = eCommerce.GetProductTypeBy(int.Parse(updateRequest.ProductTypeId));
                ProductView     product     = eCommerce.GetRepresentativeProduct(int.Parse(productType.Id));

#line default
#line hidden
                BeginContext(801, 57, true);
                WriteLiteral("\t\t\t\t<tr class=\"productTypeUpdateRequestRow\">\r\n\t\t\t\t\t<td>\r\n");
                EndContext();
#line 22 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                if (product != null)
                {
#line default
#line hidden
                    BeginContext(896, 7, true);
                    WriteLiteral("\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(903, 107, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b9999", async() => {
                    }
                                                                                );
                    __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper = CreateTagHelper <global::ECommerce.UI.AdminSite.Infrastructure.ImageTagHelper>();
                    __tagHelperExecutionContext.Add(__ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 24 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                    __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent = product.RepresentativeImage;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 24 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                    AddHtmlAttributeValue("", 982, product.ProductTypeName, 982, 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(1010, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 25 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(1042, 7, true);
                    WriteLiteral("\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(1049, 83, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b12417", 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 28 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                    AddHtmlAttributeValue("", 1111, productType.Name, 1111, 17, 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(1132, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 29 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                }

#line default
#line hidden
                BeginContext(1143, 33, true);
                WriteLiteral("\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(1176, 150, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b14472", async() => {
                    BeginContext(1306, 16, false);
#line 32 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                    Write(productType.Name);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-productTypeId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 32 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                WriteLiteral(productType.Id);

#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_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1326, 7, true);
                WriteLiteral("</h4>\r\n");
                EndContext();
#line 33 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"

                int categoryId = int.Parse(productType.CategoryId);

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

#line default
#line hidden
                EndContext();
                BeginContext(1497, 19, true);
                WriteLiteral("\r\n\t\t\t\t\t\t\t</small>\r\n");
                EndContext();
                BeginContext(1525, 33, true);
                WriteLiteral("\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(1558, 156, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b18583", async() => {
                    BeginContext(1686, 24, false);
#line 41 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                    Write(updateRequest.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);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-sellerId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 41 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                WriteLiteral(updateRequest.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);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1714, 36, true);
                WriteLiteral("</h4>\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t");
                EndContext();
                BeginContext(1750, 296, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b21702", async() => {
                    BeginContext(1790, 50, true);
                    WriteLiteral("\r\n\t\t\t\t\t\t\t<input name=\"productTypeId\" type=\"hidden\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 1840, "\"", 1876, 1);
#line 45 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                    WriteAttributeValue("", 1848, updateRequest.ProductTypeId, 1848, 28, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1877, 48, true);
                    WriteLiteral(" />\r\n\t\t\t\t\t\t\t<input name=\"sellerId\" type=\"hidden\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 1925, "\"", 1956, 1);
#line 46 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                    WriteAttributeValue("", 1933, updateRequest.SellerId, 1933, 23, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1957, 82, true);
                    WriteLiteral(" />\r\n\t\t\t\t\t\t\t<input type=\"submit\" value=\"Detail\" class=\"btn btn-primary\" />\r\n\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);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 44 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
                AddHtmlAttributeValue("", 1764, formAction, 1764, 11, false);

#line default
#line hidden
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2046, 25, true);
                WriteLiteral("\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n");
                EndContext();
#line 51 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml"
            }

#line default
#line hidden
            BeginContext(2077, 29, true);
            WriteLiteral("\t\t</tbody>\r\n\t</table>\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();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(30, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml"

            ECommerceService eCommerce   = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            ProductTypeView  productType = eCommerce.GetProductTypeBy((int)Model.SearchModel.ProductTypeId);

#line default
#line hidden
            BeginContext(232, 4, true);
            WriteLiteral("<h1>");
            EndContext();
            BeginContext(237, 16, false);
#line 7 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml"
            Write(productType.Name);

#line default
#line hidden
            EndContext();
            BeginContext(253, 9, true);
            WriteLiteral("</h1>\r\n\r\n");
            EndContext();
#line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml"
            foreach (ProductView p in Model.Products)
            {
#line default
#line hidden
                BeginContext(309, 1, true);
                WriteLiteral("\t");
                EndContext();
                BeginContext(310, 43, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "65cce5245c63b3d2f52d1efb25ceb5ea0619909c8275", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#line 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = p;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, 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(353, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 12 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml"
            }

#line default
#line hidden
            BeginContext(358, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(360, 293, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "65cce5245c63b3d2f52d1efb25ceb5ea0619909c10174", async() => {
                BeginContext(645, 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 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.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 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.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_1);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClass = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassNormal = (string)__tagHelperAttribute_3.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassSelected = (string)__tagHelperAttribute_4.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassDisabled = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            if (__ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageUrlValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-productTypeId", "ECommerce.UI.MVC.Infrastructure.PageLinkTagHelper", "PageUrlValues"));
            }
#line 17 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml"
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageUrlValues["productTypeId"] = Model.SearchModel.ProductTypeId;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("page-url-productTypeId", __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageUrlValues["productTypeId"], 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();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(31, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"

            ECommerceService eCommerce   = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            ProductTypeView  productType = eCommerce.GetProductTypeBy(Model.ProductTypeId);

#line default
#line hidden
            BeginContext(213, 5, true);
            WriteLiteral("\t<h1>");
            EndContext();
            BeginContext(219, 16, false);
#line 6 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
            Write(productType.Name);

#line default
#line hidden
            EndContext();
            BeginContext(235, 7, true);
            WriteLiteral("</h1>\r\n");
            EndContext();
            BeginContext(245, 2996, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0837b25302b4e45c839504f642d440e00439bd0d10712", async() => {
                BeginContext(322, 3, true);
                WriteLiteral("\r\n\t");
                EndContext();
                BeginContext(325, 66, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0837b25302b4e45c839504f642d440e00439bd0d11096", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper);
#line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary = global::Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary.ModelOnly;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-summary", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(391, 5, true);
                WriteLiteral("\r\n\r\n\t");
                EndContext();
                BeginContext(396, 47, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d12889", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProductTypeId);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, 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(443, 33, true);
                WriteLiteral("\r\n\r\n\t<div class=\"form-group\">\r\n\t\t");
                EndContext();
                BeginContext(476, 65, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0837b25302b4e45c839504f642d440e00439bd0d14759", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper);
#line 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateModel.Price);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, 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(541, 4, true);
                WriteLiteral("\r\n\t\t");
                EndContext();
                BeginContext(545, 58, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d16473", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
#line 15 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateModel.Price);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, 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(603, 4, true);
                WriteLiteral("\r\n\t\t");
                EndContext();
                BeginContext(607, 72, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0837b25302b4e45c839504f642d440e00439bd0d18181", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper);
#line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateModel.Price);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(679, 256, true);
                WriteLiteral(@"
	</div>

	<table class=""table table-striped table-bordered table-hover table-condensed table-sm table-active table-secondary mw-100"">
		<thead class=""thead-dark"">
			<tr>
				<th>Attribute</th>
				<th>Values</th>
			</tr>
		</thead>
		<tbody>
");
                EndContext();
#line 27 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"

                short attributeCount = 0;
                if (Model.UpdateModel.Attributes != null)
                {
                    foreach (var attribute in Model.UpdateModel.Attributes)
                    {
#line default
#line hidden
                        BeginContext(1097, 74, true);
                        WriteLiteral("\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td><input name=\"keys\" class=\"form-control\" type=\"text\"");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 1171, "\"", 1193, 1);
#line 34 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                        WriteAttributeValue("", 1179, attribute.Key, 1179, 14, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(1194, 63, true);
                        WriteLiteral(" /></td>\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t<input name=\"values\" type=\"text\"");
                        EndContext();
                        BeginWriteAttribute("value", " value=\"", 1257, "\"", 1299, 1);
#line 36 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                        WriteAttributeValue("", 1265, string.Join(',', attribute.Value), 1265, 34, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(1300, 54, true);
                        WriteLiteral(" data-role=\"tagsinput\" />\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>\r\n");
                        EndContext();
#line 39 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                        attributeCount++;
                    }
                }
                while (attributeCount++ < Model.ProductAttributesNumber)
                {
#line default
#line hidden
                    BeginContext(1463, 185, true);
                    WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td><input name=\"keys\" class=\"form-control\" type=\"text\" /></td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<input name=\"values\" type=\"text\" data-role=\"tagsinput\" />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n");
                    EndContext();
#line 50 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                }


#line default
#line hidden
                BeginContext(1661, 251, true);
                WriteLiteral("\t\t<tbody>\r\n\t\t<tfoot>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\" class=\"changeAttributeNumber\">\r\n\t\t\t\t\t<div class=\"input-group\">\r\n\t\t\t\t\t\t<div class=\"input-group-prepend\">\r\n\t\t\t\t\t\t\t<span class=\"input-group-text\">Change attribute number here</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t");
                EndContext();
                BeginContext(1912, 105, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d22920", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
#line 60 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProductAttributesNumber);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2017, 61, true);
                WriteLiteral("\r\n\t\t\t\t\t\t<input type=\"hidden\" class=\"changeAttributeNumberUrl\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 2078, "\"", 2151, 1);
#line 61 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                WriteAttributeValue("", 2086, Url.Action("Index", new { productTypeId = Model.ProductTypeId }), 2086, 65, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2152, 300, true);
                WriteLiteral(@" />
						<div class=""input-group-append"">
							<button class=""changeAttributeNumberBtn btn btn-primary"">Change</button>
						</div>
					</div>
				</td>
			</tr>
		</tfoot>
	</table>

	<div class=""form-group"">
		<label class=""control-label"">Product's representative image:</label>
		"        );
                EndContext();
                BeginContext(2452, 94, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d25702", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
#line 73 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateRepresentativeImage);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, 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(2546, 289, true);
                WriteLiteral(@"Check if update
		<div class=""file-loading"">
			<input id=""representativeImageFileInput"" class=""file registerProductFileInput"" name=""representativeImage"" type=""file"" disabled />
		</div>
	</div>

	<div class=""form-group"">
		<label class=""control-label"">Product's images:</label>
		"        );
                EndContext();
                BeginContext(2835, 68, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d27934", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
#line 81 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml"
                __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateImages);

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, 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(2903, 331, true);
                WriteLiteral(@"Check if update
		<div class=""file-loading"">
			<input id=""imagesFileInput"" class=""file registerProductFileInput"" name=""images"" type=""file"" multiple disabled />
		</div>
	</div>

	<input type=""submit"" value=""Update product"" class=""btn btn-success"" />
	<input type=""reset"" class=""btn btn-outline-secondary"" value=""Reset"" />
");
                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_9.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_10.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(3241, 1353, true);
            WriteLiteral(@"

<script type=""text/javascript"">
	//change attribute number on click
	$('.changeAttributeNumberBtn').click(function (event) {
		event.preventDefault();

		$container = $(this).closest('.changeAttributeNumber');

		$value = $container.find('.changeAttributeNumberValue').val();

		$link = $container.find('.changeAttributeNumberUrl').val();

		window.location.replace($link + '&productAttributesNumber=' + $value);
	});

	//upload images
	$('.registerProductFileInput').fileinput({
        allowedFileExtensions: ['jpg', 'png', 'gif', 'jpeg'],
		removeClass: 'btn btn-danger',
		showUpload: false,
		allowedFileTypes: ['image'],
		maxFileSize: '2000',
		theme: 'fas',
		browseOnZoneClick: 'true'
	});

	//checkboxes always start unchecked
	$('#representativeImageCheckbox').prop('checked', false);
	$('#imagesCheckbox').prop('checked', false);

	//disable file input when uncheck check box
	$('#representativeImageCheckbox').change(function () {

		var fileInput = $('#representativeImageFi"        );
            WriteLiteral(@"leInput');
		if (this.checked) {
			fileInput.fileinput('enable');
		}
		else fileInput.fileinput('disable');
	});

	$('#imagesCheckbox').change(function () {

		var fileInput = $('#imagesFileInput');
		if (this.checked) {
			fileInput.fileinput('enable');
		}
		else fileInput.fileinput('disable');
	});
</script>");
            EndContext();
        }