Пример #1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        ECommerceService proxy = new ECommerceService();

        proxy.PlaceOrder(Session["cartid"].ToString(), TextBox3.Text, TextBox4.Text, TextBox5.Text, TextBox6.Text, TextBox7.Text);
        Response.Redirect("success.aspx");
    }
Пример #2
0
 public SellerLoginPersistence(IHttpContextAccessor accessor, IUnitOfWork unitOfWork)
 {
     eCommerce       = new ECommerceService(unitOfWork);
     session         = accessor.HttpContext.Session;
     responseCookies = accessor.HttpContext.Response.Cookies;
     requestCookies  = accessor.HttpContext.Request.Cookies;
     connectionInfo  = accessor.HttpContext.Connection;
 }
Пример #3
0
    private void DisplayTotal()
    {
        ECommerceService proxy = new ECommerceService();
        decimal          total = proxy.GetCartAmount(Session["cartid"].ToString());

        if (total == 0)
        {
            panel1.Visible = false;
        }
        Label3.Text = "$" + total;
    }
Пример #4
0
        static void Main(string[] args)
        {
            //ApplicationDbContext context = new ApplicationDbContext();
            IUnitOfWork      uow       = new UnitOfWork();
            ECommerceService eCommerce = new ECommerceService(uow);

            var x = eCommerce.GetProductTypeUpdateRequestBy(1, 8);

            Console.WriteLine(x.Descriptions);

            Console.WriteLine("Done.");
            Console.ReadKey();
        }
Пример #5
0
        static void Main(string[] args)
        {
            ECommerceService service = new ECommerceService(new ECommerce());

            Console.WriteLine("Retrieving categories...");
            service.GetCategoryList();
            service.PopulateListOfURLs();
            Console.WriteLine("Getting basic company info...");
            service.GetBasicInfo();
            Console.WriteLine("Getting info from AllaBolag.se...");
            service.GetInfoFromAllaBolag();
            service.WriteToFile(service.GetCurrentPortal());
            Console.ReadLine();
        }
Пример #6
0
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        ECommerceService proxy = new ECommerceService();
        GridViewRow      row   = GridView1.Rows[Convert.ToInt32(e.CommandArgument)];

        int productid = Convert.ToInt32(row.Cells[0].Text);

        if (e.CommandName == "RemoveItem")
        {
            proxy.RemoveItem(Session["cartid"].ToString(), productid);
        }
        if (e.CommandName == "UpdateItem")
        {
            int qty = Convert.ToInt32(((TextBox)row.FindControl("TextBox2")).Text);
            if (qty <= 0)
            {
                throw new Exception("Quantity must be greater than 0");
            }
            proxy.UpdateItem(Session["cartid"].ToString(), productid, qty);
        }
        GridView1.DataBind();
        DisplayTotal();
    }
        #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();
        }
 public NavigationMenuViewComponent(IUnitOfWork unitOfWork)
 {
     eCommerce = new ECommerceService(unitOfWork);
 }
Пример #9
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(36, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CategoriesPickerDropDown\Default.cshtml"

            TagBuilder output = new TagBuilder("div");
            output.AddCssClass("btn-group dropdown-hover");
            output.AddCssClass(Model.AdditionalCssClass);
            TagBuilder title = new TagBuilder("a");
            title.AddCssClass("btn-block dropdown-toggle");
            title.InnerHtml.Append("Pick Category");
            output.InnerHtml.AppendHtml(title);

            TagBuilder       result    = null;
            ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            Stack <IList <CategoryView> > categoryStack = new Stack <IList <CategoryView> >();
            categoryStack.Push(Model.Categories.ToList());
            Stack <short> indexStack = new Stack <short>();
            indexStack.Push(0);
            Stack <TagBuilder> menuStack = new Stack <TagBuilder>();
            TagBuilder         list      = new TagBuilder("ul");
            list.AddCssClass("dropdown-menu");
            menuStack.Push(list);
            while (categoryStack.Any())
            {
                list = menuStack.Peek();
                for (short i = indexStack.Peek(); i < categoryStack.Peek().Count(); i++)
                {
                    TagBuilder line = new TagBuilder("li");
                    TagBuilder item = new TagBuilder("a");
                    item.AddCssClass("dropdown-item categoryPickingButton");
                    //item.Attributes["href"] = "#";
                    item.InnerHtml.Append(categoryStack.Peek()[i].Name);
                    item.InnerHtml.AppendHtml($"<p class=\"d-none\" name=\"categoryId\">{categoryStack.Peek()[i].Id}</p>");
                    line.InnerHtml.AppendHtml(item);
                    list.InnerHtml.AppendHtml(line);
                    List <CategoryView> childCategories = eCommerce.GetChildCategories(int.Parse(categoryStack.Peek()[i].Id)).ToList();
                    if (childCategories.Any())
                    {
                        line.AddCssClass("dropdown-submenu");
                        indexStack.Pop();
                        indexStack.Push((short)(i + 1));
                        indexStack.Push(0);
                        categoryStack.Push(childCategories);
                        TagBuilder newList = new TagBuilder("ul");
                        newList.AddCssClass("dropdown-menu");
                        line.InnerHtml.AppendHtml(newList);
                        menuStack.Push(newList);
                        goto loop;
                    }
                }
                indexStack.Pop();
                categoryStack.Pop();
                menuStack.Pop();
                result = list;
                loop :;
            }
            output.InnerHtml.AppendHtml(result);

#line default
#line hidden
            BeginContext(2063, 6, false);
#line 58 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Shared\Components\CategoriesPickerDropDown\Default.cshtml"
            Write(output);

#line default
#line hidden
            EndContext();
        }
Пример #10
0
 public CategoriesListViewComponent(IUnitOfWork unitOfWork)
 {
     eCommerce = new ECommerceService(unitOfWork);
 }
        #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(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();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(20, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];

#line default
#line hidden
            BeginContext(119, 271, true);
            WriteLiteral(@"<div class=""container"">
	<div class=""card productDetailCard"">
		<div class=""container-fliud"">
			<div class=""wrapper row"">
				<div class=""preview col-md-6"">
					<div id=""galleryResult"" class=""preview-pic tab-content"">
						<div class=""galleryThumbnail"">
							"                            );
            EndContext();
            BeginContext(390, 65, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d7925c9d50d5a17e9a63fa26866a3117b92fe5ab11951", 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 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent = Model.RepresentativeImage;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(455, 203, true);
            WriteLiteral("\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div id=\"carouselExampleControls\" class=\"preview-thumbnail nav nav-tabs carousel slide\" data-ride=\"carousel\" data-interval=\"false\">\r\n\t\t\t\t\t\t<div class=\"carousel-inner\">\r\n");
            EndContext();
#line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"

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


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

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

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

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

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

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

#line default
#line hidden
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            __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 62 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            WriteLiteral(Model.SellerId);

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

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(3089, 114, true);
            WriteLiteral("</h4>\r\n\t\t\t\t\t<p class=\"vote\"><strong>91%</strong> of buyers enjoyed this product! <strong>(87 votes)</strong></p>\r\n");
            EndContext();
#line 64 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            foreach (var attribute in Model.Attributes)
            {
#line default
#line hidden
                BeginContext(3262, 59, true);
                WriteLiteral("\t\t\t\t\t\t<h5 class=\"font-weight-bold text-uppercase\">\r\n\t\t\t\t\t\t\t");
                EndContext();
                BeginContext(3322, 13, false);
#line 67 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                Write(attribute.Key);

#line default
#line hidden
                EndContext();
                BeginContext(3335, 3, true);
                WriteLiteral(":\r\n");
                EndContext();
#line 68 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                foreach (var value in attribute.Value)
                {
#line default
#line hidden
                    BeginContext(3396, 89, true);
                    WriteLiteral("\t\t\t\t\t\t\t\t<label class=\"radio-inline text-info\">\r\n\t\t\t\t\t\t\t\t\t<input type=\"radio\" disabled /> ");
                    EndContext();
                    BeginContext(3486, 5, false);
#line 71 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                    Write(value);

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

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

#line default
#line hidden
            BeginContext(3542, 106, true);
            WriteLiteral("\t\t\t\t\t<h5 class=\"font-weight-bold text-uppercase\">Quantity:<input id=\"productQuantity\" type=\"text\" readonly");
            EndContext();
            BeginWriteAttribute("value", " value=\"", 3648, "\"", 3671, 1);
#line 76 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            WriteAttributeValue("", 3656, Model.Quantity, 3656, 15, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(3672, 67, true);
            WriteLiteral(" /></h5>\r\n\t\t\t\t\t<h5 class=\"font-weight-bold text-uppercase\">Active: ");
            EndContext();
            BeginContext(3740, 12, false);
#line 77 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
            Write(Model.Active);

#line default
#line hidden
            EndContext();
            BeginContext(3752, 75, true);
            WriteLiteral("</h5>\r\n\t\t\t\t\t<h5 class=\"font-weight-bold text-uppercase\">Status:</h5>\r\n\t\t\t\t\t");
            EndContext();
            BeginContext(3827, 370, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d7925c9d50d5a17e9a63fa26866a3117b92fe5ab26657", async() => {
                BeginContext(3898, 44, true);
                WriteLiteral("\r\n\t\t\t\t\t\t<input name=\"sellerId\" type=\"hidden\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 3942, "\"", 3965, 1);
#line 80 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                WriteAttributeValue("", 3950, Model.SellerId, 3950, 15, false);

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

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(4047, 11, true);
                WriteLiteral(" />\r\n\t\t\t\t\t\t");
                EndContext();
                BeginContext(4058, 125, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("select", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d7925c9d50d5a17e9a63fa26866a3117b92fe5ab28077", async() => {
                }
                                                                            );
                __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper = CreateTagHelper <global::ECommerce.UI.AdminSite.Infrastructure.EnumSelectListTagHelper>();
                __tagHelperExecutionContext.Add(__ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
#line 82 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.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 82 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                __ECommerce_UI_AdminSite_Infrastructure_EnumSelectListTagHelper.Selected = Model.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(4183, 7, true);
                WriteLiteral("\r\n\t\t\t\t\t");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_8.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_9.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_10.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(4197, 86, true);
            WriteLiteral("\r\n\t\t\t\t\t<h5 class=\"font-weight-bold text-uppercase\">Add or reduce quantity:</h5>\r\n\t\t\t\t\t");
            EndContext();
            BeginContext(4283, 793, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d7925c9d50d5a17e9a63fa26866a3117b92fe5ab32154", async() => {
                BeginContext(4394, 154, true);
                WriteLiteral("\r\n\t\t\t\t\t\t<div class=\"form-row\">\r\n\t\t\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t\t\t<div class=\"input-group\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"input-group-prepend\">\r\n\t\t\t\t\t\t\t\t\t\t");
                EndContext();
                BeginContext(4548, 117, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("select", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d7925c9d50d5a17e9a63fa26866a3117b92fe5ab32749", async() => {
                }
                                                                            );
                __ECommerce_UI_AdminSite_Infrastructure_BooleanSelectListTagHelper = CreateTagHelper <global::ECommerce.UI.AdminSite.Infrastructure.BooleanSelectListTagHelper>();
                __tagHelperExecutionContext.Add(__ECommerce_UI_AdminSite_Infrastructure_BooleanSelectListTagHelper);
#line 90 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                __ECommerce_UI_AdminSite_Infrastructure_BooleanSelectListTagHelper.SelectedBoolValue = null;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("selected-bool-value", __ECommerce_UI_AdminSite_Infrastructure_BooleanSelectListTagHelper.SelectedBoolValue, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __ECommerce_UI_AdminSite_Infrastructure_BooleanSelectListTagHelper.TrueLabel = (string)__tagHelperAttribute_11.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11);
                __ECommerce_UI_AdminSite_Infrastructure_BooleanSelectListTagHelper.FalseLabel = (string)__tagHelperAttribute_12.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_13);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_14);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(4665, 175, true);
                WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t<input class=\"form-control\" type=\"number\" name=\"number\" />\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"sellerId\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 4840, "\"", 4863, 1);
#line 96 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductDetail.cshtml"
                WriteAttributeValue("", 4848, Model.SellerId, 4848, 15, false);

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

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(4945, 124, true);
                WriteLiteral(" />\r\n\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t<input class=\"btn btn-lg btn-success\" type=\"submit\" value=\"Change quantity\" />\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_15.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (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_16);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(5076, 642, true);
            WriteLiteral(@"
				</div>
			</div>
		</div>
	</div>
</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);
			}
		});
	});

	//product detail

	$('.galleryThumbnail').click(function(){
		$('#galleryResult').html($(this).clone());
	});
</script>");
            EndContext();
        }
Пример #14
0
        #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();
        }
 public CartTableViewComponent(IUnitOfWork unitOfWork)
 {
     eCommerce = new ECommerceService(unitOfWork);
 }
Пример #16
0
 public ProductController(IUnitOfWork unitOfWork)
 {
     eCommerce = new ECommerceService(unitOfWork);
 }
Пример #17
0
 public RegisterProductController(IHttpContextAccessor accessor, IUnitOfWork unitOfWork)
 {
     eCommerce        = new ECommerceService(unitOfWork);
     loginPersistence = new SellerLoginPersistence(accessor, unitOfWork);
 }
Пример #18
0
 public CategoriesPickerDropDownViewComponent(IUnitOfWork unitOfWork)
 {
     eCommerce = new ECommerceService(unitOfWork);
 }
Пример #19
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();
        }
Пример #21
0
 public CategoryBreadCrumbViewComponent(IUnitOfWork unitOfWork)
 {
     eCommerce = new ECommerceService(unitOfWork);
 }
Пример #22
0
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        ECommerceService proxy = new ECommerceService();

        proxy.AddItem(Session["cartid"].ToString(), Convert.ToInt32(GridView1.SelectedValue), 1);
    }
Пример #23
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();
        }
Пример #24
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(31, 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.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"

            ECommerceService eCommerce            = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            string           removeAction         = Url.Action("RemoveFromCart", "Cart");
            string           changeQuantityAction = Url.Action("ChangeQuantity", "Cart");
            foreach (OrderView order in Model)
            {
                ProductView product = eCommerce.GetProductBy(int.Parse(order.SellerId), int.Parse(order.ProductTypeId));

#line default
#line hidden
                BeginContext(982, 45, true);
                WriteLiteral("\t\t\t\t\t<tr class=\"orderTableRow\">\r\n\t\t\t\t\t\t<td>\r\n");
                EndContext();
#line 26 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                if (product != null)
                {
#line default
#line hidden
                    BeginContext(1065, 7, true);
                    WriteLiteral("\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(1072, 105, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "22910b03a2e4ab43cb8ff370c3ba50625d0eb9588895", 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 28 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.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 28 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                    AddHtmlAttributeValue("", 1151, order.ProductTypeName, 1151, 22, false);

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

                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(1177, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 29 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(1209, 7, true);
                    WriteLiteral("\t\t\t\t\t\t\t");
                    EndContext();
                    BeginContext(1216, 88, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "22910b03a2e4ab43cb8ff370c3ba50625d0eb95811256", 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 32 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                    AddHtmlAttributeValue("", 1278, order.ProductTypeName, 1278, 22, false);

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

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

#line default
#line hidden
                BeginContext(1315, 41, true);
                WriteLiteral("\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class=\"text-left\">");
                EndContext();
                BeginContext(1356, 160, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "22910b03a2e4ab43cb8ff370c3ba50625d0eb95813282", async() => {
                    BeginContext(1491, 21, false);
#line 35 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                    Write(order.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);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-productTypeId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 35 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                WriteLiteral(order.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(1516, 35, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td class=\"text-left\">");
                EndContext();
                BeginContext(1551, 140, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "22910b03a2e4ab43cb8ff370c3ba50625d0eb95816446", async() => {
                    BeginContext(1671, 16, false);
#line 36 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                    Write(order.SellerName);

#line default
#line hidden
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __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 36 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                WriteLiteral(order.SellerId);

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1691, 37, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td class=\"text-left\">\r\n");
                EndContext();
#line 38 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                foreach (var attribute in order.Attributes)
                {
#line default
#line hidden
                    BeginContext(1791, 11, true);
                    WriteLiteral("\t\t\t\t\t\t\t\t<p>");
                    EndContext();
                    BeginContext(1803, 13, false);
#line 40 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                    Write(attribute.Key);

#line default
#line hidden
                    EndContext();
                    BeginContext(1816, 2, true);
                    WriteLiteral(": ");
                    EndContext();
                    BeginContext(1819, 15, false);
#line 40 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                    Write(attribute.Value);

#line default
#line hidden
                    EndContext();
                    BeginContext(1834, 6, true);
                    WriteLiteral("</p>\r\n");
                    EndContext();
#line 41 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                }

#line default
#line hidden
                BeginContext(1850, 43, true);
                WriteLiteral("\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class=\"text-center\">");
                EndContext();
                BeginContext(1894, 14, false);
#line 43 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                Write(order.Quantity);

#line default
#line hidden
                EndContext();
                BeginContext(1908, 36, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td class=\"text-right\">");
                EndContext();
                BeginContext(1945, 41, false);
#line 44 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                Write(CurrencyFormat.Format(order.CurrentPrice));

#line default
#line hidden
                EndContext();
                BeginContext(1986, 36, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td class=\"text-right\">");
                EndContext();
                BeginContext(2023, 84, false);
#line 45 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
                Write(CurrencyFormat.Format(decimal.Parse(order.CurrentPrice) * int.Parse(order.Quantity)));

#line default
#line hidden
                EndContext();
                BeginContext(2107, 19, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t</tr>\r\n");
                EndContext();
#line 47 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\OrdersTable.cshtml"
            }


#line default
#line hidden
            BeginContext(2139, 29, true);
            WriteLiteral("\t\t</tbody>\r\n\t</table>\r\n</div>");
            EndContext();
        }
Пример #25
0
 public SellerController(IHttpContextAccessor accessor, IUnitOfWork unitOfWork)
 {
     eCommerce        = new ECommerceService(unitOfWork);
     loginPersistence = new AdminLoginPersistence(accessor, unitOfWork);
 }
Пример #26
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();
        }
Пример #27
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(34, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\Components\CategoriesList\Default.cshtml"

            TagBuilder header = new TagBuilder("div");
            header.AddCssClass("card-header bg-primary text-white text-uppercase");
            TagBuilder headerIcon = new TagBuilder("i");
            headerIcon.AddCssClass("fa fa-list");
            header.InnerHtml.AppendHtml(headerIcon);
            header.InnerHtml.Append(" Categories");

            ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService];
            IUrlHelper       urlHelper = this.Url;
            TagBuilder       listGroup = new TagBuilder("ul");
            listGroup.AddCssClass("list-group category_block");
            foreach (CategoryView category in Model)
            {
                TagBuilder listGroupItem = new TagBuilder("li");
                listGroupItem.AddCssClass("list-group-item");
                TagBuilder link = new TagBuilder("a");
                link.AddCssClass("list-group-item-link");
                link.Attributes["href"] = urlHelper.Action("Search", "ProductType", new { categoryId = category.Id, page = 1 });
                link.InnerHtml.Append(category.Name);
                listGroupItem.InnerHtml.AppendHtml(link);
                IList <CategoryView> childs = eCommerce.GetChildCategories(int.Parse(category.Id)).ToList();
                if (childs.Any())
                {
                    listGroupItem.AddCssClass("btn-group dropdown-hover");
                    link.AddCssClass("dropdown-toggle");

                    TagBuilder result = null;
                    Stack <IList <CategoryView> > categoryStack = new Stack <IList <CategoryView> >();
                    categoryStack.Push(childs);
                    Stack <short> indexStack = new Stack <short>();
                    indexStack.Push(0);
                    Stack <TagBuilder> menuStack = new Stack <TagBuilder>();
                    TagBuilder         list      = new TagBuilder("ul");
                    list.AddCssClass("dropdown-menu");
                    menuStack.Push(list);
                    while (categoryStack.Any())
                    {
                        list = menuStack.Peek();
                        for (short i = indexStack.Peek(); i < categoryStack.Peek().Count(); i++)
                        {
                            TagBuilder line = new TagBuilder("li");
                            TagBuilder item = new TagBuilder("a");
                            item.AddCssClass("dropdown-item");
                            item.Attributes["href"] = urlHelper.Action("Search", "ProductType", new { categoryId = categoryStack.Peek()[i].Id, page = 1 });
                            item.InnerHtml.Append(categoryStack.Peek()[i].Name);
                            line.InnerHtml.AppendHtml(item);
                            list.InnerHtml.AppendHtml(line);
                            List <CategoryView> childCategories = eCommerce.GetChildCategories(int.Parse(categoryStack.Peek()[i].Id)).ToList();
                            if (childCategories.Any())
                            {
                                line.AddCssClass("dropdown-submenu");
                                indexStack.Pop();
                                indexStack.Push((short)(i + 1));
                                indexStack.Push(0);
                                categoryStack.Push(childCategories);
                                TagBuilder newList = new TagBuilder("ul");
                                newList.AddCssClass("dropdown-menu");
                                line.InnerHtml.AppendHtml(newList);
                                menuStack.Push(newList);
                                goto loop;
                            }
                        }
                        indexStack.Pop();
                        categoryStack.Pop();
                        menuStack.Pop();
                        result = list;
                        loop :;
                    }
                    listGroupItem.InnerHtml.AppendHtml(result);
                }
                listGroup.InnerHtml.AppendHtml(listGroupItem);
            }

#line default
#line hidden
            BeginContext(2930, 6, false);
#line 77 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\Components\CategoriesList\Default.cshtml"
            Write(header);

#line default
#line hidden
            EndContext();
            BeginContext(2936, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(2939, 9, false);
#line 78 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\Components\CategoriesList\Default.cshtml"
            Write(listGroup);

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

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

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_MVC_Infrastructure_ImageTagHelper.FileContent, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(829, 17, true);
                WriteLiteral("</td>\r\n\t\t\t\t\t\t<td>");
                EndContext();
                BeginContext(847, 23, false);
#line 23 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                Write(product.ProductTypeName);

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

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

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

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

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

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

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1456, 25, true);
                WriteLiteral("\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>");
                EndContext();
                BeginContext(1482, 14, false);
#line 36 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\Product.cshtml"
                Write(product.Status);

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

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

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


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

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

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageAction = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("page-action", __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageAction, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClass = (string)__tagHelperAttribute_4.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassNormal = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassSelected = (string)__tagHelperAttribute_6.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
            __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassDisabled = (string)__tagHelperAttribute_7.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

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

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

	$('.submitOnChange').change(function () {
		var $form = $(this).closest('form');
		$.ajax({
			url: $form.attr('action'),
			type: $form.attr('method'),
			data: $form.serialize(),
			success: function (result) {
				if (result != '')
					alert(result);
			},
			error: function (result) {
				alert('something went wrong while changing product active:\n' + result);
			}
		});
	});
</script>");
            EndContext();
        }
Пример #29
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();
        }
        #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();
        }