public IActionResult Informations(ProductTypeView productType) { if (ModelState.IsValid) { eCommerce.UpdateProductType(int.Parse(productType.Id), new ProductTypeUpdateModel { Name = productType.Name, CategoryId = int.Parse(productType.CategoryId) }, out ICollection <string> errors); if (errors.Any()) { ViewData[GlobalViewBagKeys.Errors] = errors; } else { ProductTypeView updatedProductType = eCommerce.GetProductTypeBy(int.Parse(productType.Id)); ICollection <string> messages = new List <string>(); messages.Add("Product type informations updated"); ViewData[GlobalViewBagKeys.Messages] = messages; return(View(updatedProductType)); } } return(View(productType)); }
public IActionResult Index(int productTypeId, short productAttributesNumber = 3) { ICollection <string> errors = new List <string>(); ProductTypeView productType = eCommerce.GetProductTypeBy(productTypeId); if (productType != null) { if (productType.Status == ProductTypeStatus.Locked) { errors.Add("Product is unavailable at the moment"); } } else { errors.Add("Could not found product type"); } if (errors.Any()) { ViewData[GlobalViewBagKeys.Errors] = errors; return(RedirectToAction("SelectProductType")); } ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce; return(View(new RegisterProductViewModel { AddModel = new ProductAddModel { ProductTypeId = productTypeId }, ProductAttributesNumber = productAttributesNumber })); }
public IActionResult UpdateProduct(int productTypeId, short productAttributesNumber = 3) { SellerView seller = loginPersistence.PersistLogin(); var errors = new List <string>(); ProductTypeView productType = eCommerce.GetProductTypeBy(productTypeId); if (productType == null) { errors.Add("Could not found product type"); } if (errors.Any()) { ViewData[GlobalViewBagKeys.Errors] = errors; return(RedirectToAction("Product")); } ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce; return(View(new UpdateProductViewModel { ProductTypeId = productTypeId, UpdateModel = eCommerce.GetProductUpdateModelBy(int.Parse(seller.Id), productTypeId), ProductAttributesNumber = productAttributesNumber })); }
public static ProductTypeView ToViewEntity(ProductType dataEntity) { ProductTypeView viewEntity = new ProductTypeView(); viewEntity.Id = dataEntity.Id; viewEntity.Name = dataEntity.Name; viewEntity.ExpirationDate = dataEntity.ExpirationDate; viewEntity.PriceRecomendation = dataEntity.PriceRecomendation; return(viewEntity); }
public static ProductType ToDataEntity(ProductTypeView viewEntity) { ProductType dataEntity = new ProductType(); dataEntity.Id = viewEntity.Id; dataEntity.Name = viewEntity.Name; dataEntity.PriceRecomendation = viewEntity.PriceRecomendation; dataEntity.ExpirationDate = viewEntity.ExpirationDate; return(dataEntity); }
public IActionResult Index(int productTypeId) { SellerView seller = loginPersistence.PersistLogin(); var errors = new List <string>(); ProductTypeView productType = eCommerce.GetProductTypeBy(productTypeId); if (productType != null) { if (productType.Status == ProductTypeStatus.Locked) { errors.Add("Product is unavailable at the moment"); } } else { errors.Add("Could not found product type"); } if (errors.Any()) { ViewData[GlobalViewBagKeys.Errors] = errors; return(RedirectToAction("SelectProductType")); } ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce; ProductTypeUpdateRequestView updateRequest = eCommerce.GetProductTypeUpdateRequestBy(int.Parse(seller.Id), int.Parse(productType.Id)); ProductTypeUpdateRequestAddModel addModel = new ProductTypeUpdateRequestAddModel(); if (updateRequest != null) { if (updateRequest.CategoryId != null) { addModel.CategoryId = int.Parse(updateRequest.CategoryId); } addModel.Name = updateRequest.Name; addModel.ProductTypeId = int.Parse(productType.Id); addModel.Descriptions = updateRequest.Descriptions; } else { addModel.CategoryId = int.Parse(productType.CategoryId); addModel.Name = productType.Name; addModel.ProductTypeId = int.Parse(productType.Id); } return(View(addModel)); }
public IActionResult CreateProductType(ProductTypeAddModel addModel) { //check validation if (ModelState.IsValid) { //add product type to database eCommerce.AddProductType(addModel, out ICollection <string> errors); //return if error happen if (errors.Any()) { ViewData[GlobalViewBagKeys.Errors] = errors; return(View(addModel)); } //get the just added product type try { //find exactly 1 record ProductTypeView productType = eCommerce .GetProductTypesBy(new ProductTypeSearchModel { DateTimeModified = addModel.DateModified, SearchString = addModel.Name }, null, null) .Single(); //if found exactly 1 record then continue to next step return(RedirectToAction("Index", new { productTypeId = int.Parse(productType.Id) })); } catch (Exception) //if not exactly 1 record then throw error and return { errors.Add("There is a problem adding product type please try again"); } } return(View(addModel)); }
private void SelectNode(object sender, TreeViewEventArgs e) { string name = treeView.SelectedNode.Text; switch (name) { case "Quản lý nhân viên": var userView = new UserView { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(userView); break; case "Quản lý cấu hình hệ thống": var configurationView = new ConfigurationView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(configurationView); break; case "Quản lý nội dung tin nhắn": var smsView = new SmsView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(smsView); break; case "Quản lý nội dung email": var emailView = new EmailView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(emailView); break; case "Quản lý khách hàng": var customerView = new CustomerView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(customerView); break; case "Quản lý loại sản phẩm": var productTypeView = new ProductTypeView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(productTypeView); break; case "Quản lý sản phẩm": var productView = new ProductView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(productView); break; case "Quản lý sản phẩm LD": var productLDView = new ProductLDView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(productLDView); break; case "Quản lý thiết bị vận chuyển": var vehicleView = new VehicleView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(vehicleView); break; case "Quản lý đơn hàng": var orderView = new OrderView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(orderView); break; case "Quản lý thông tin vận chuyển": var mainView = new MainView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(mainView); break; case "Bảng thông tin đơn hàng": var frm = new DashboardForm { Dock = DockStyle.Fill, TopLevel = true }; frm.ShowDialog(); break; case "Quản lý tên thành phố": var cityView = new CityView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(cityView); break; case "Quản lý quyền truy cập": var roleView = new RoleView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(roleView); break; case "Quản lý cập nhật dữ liệu": var lockingView = new LockingView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(lockingView); break; case "Quản lý thông tin email": var emailDataView = new EmailDataView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(emailDataView); break; case "Quản lý thông tin tin nhắn": var smsDataView = new SmsDataView(CurrentUser) { Dock = DockStyle.Fill, TopLevel = false }; OpenForm(smsDataView); break; default: break; } }
#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(); }
#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(); }
public IActionResult Informations(int productTypeId) { ProductTypeView productType = eCommerce.GetProductTypeBy(productTypeId); return(productType != null?View(productType) : (IActionResult)NotFound()); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(41, 2, true); WriteLiteral("\r\n"); EndContext(); #line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\UpdateProductType\Index.cshtml" ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService]; ProductTypeView productType = eCommerce.GetProductTypeBy(Model.ProductTypeId); #line default #line hidden BeginContext(226, 78, true); WriteLiteral("<h1>Current product type</h1>\r\n<h2><label>Product type name:</label></h2>\r\n<p>"); EndContext(); BeginContext(305, 16, false); #line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\UpdateProductType\Index.cshtml" Write(productType.Name); #line default #line hidden EndContext(); BeginContext(321, 54, true); WriteLiteral("</p>\r\n<h2><label>Product type category:</label></h2>\r\n"); EndContext(); BeginContext(376, 105, false); #line 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\UpdateProductType\Index.cshtml" Write(await Component.InvokeAsync("CategoryBreadCrumb", new { categoryId = int.Parse(productType.CategoryId) })); #line default #line hidden EndContext(); BeginContext(481, 41, true); WriteLiteral("\r\n<hr />\r\n<h1>Update request info:</h1>\r\n"); EndContext(); BeginContext(522, 154, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4db39d4cc3d7f19613c185881107bd03547761237359", async() => { BeginContext(561, 3, true); WriteLiteral("\r\n\t"); EndContext(); BeginContext(565, 55, false); #line 15 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\UpdateProductType\Index.cshtml" Write(Html.EditorForModel("ProductTypeUpdateRequestAddModel")); #line default #line hidden EndContext(); BeginContext(620, 49, true); WriteLiteral("\r\n\t<input type=\"submit\" value=\"Send request\" />\r\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(50, 2, true); WriteLiteral("\r\n"); EndContext(); #line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService]; #line default #line hidden BeginContext(149, 309, true); WriteLiteral(@" <div class=""table-responsive rounded""> <table class=""table table-striped table-bordered table-hover table-condensed table-sm table-secondary table-active""> <thead class=""thead-dark""> <tr> <th class=""w-25""></th> <th>Product type</th> <th>Seller</th> </tr> </thead> <tbody> "); EndContext(); #line 15 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" string formAction = Url.Action("UpdateRequestDetail", "ProductType"); #line default #line hidden BeginContext(535, 3, true); WriteLiteral("\t\t\t"); EndContext(); #line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" foreach (ProductTypeUpdateRequestView updateRequest in Model) { ProductTypeView productType = eCommerce.GetProductTypeBy(int.Parse(updateRequest.ProductTypeId)); ProductView product = eCommerce.GetRepresentativeProduct(int.Parse(productType.Id)); #line default #line hidden BeginContext(801, 57, true); WriteLiteral("\t\t\t\t<tr class=\"productTypeUpdateRequestRow\">\r\n\t\t\t\t\t<td>\r\n"); EndContext(); #line 22 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" if (product != null) { #line default #line hidden BeginContext(896, 7, true); WriteLiteral("\t\t\t\t\t\t\t"); EndContext(); BeginContext(903, 107, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b9999", async() => { } ); __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper = CreateTagHelper <global::ECommerce.UI.AdminSite.Infrastructure.ImageTagHelper>(); __tagHelperExecutionContext.Add(__ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); #line 24 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent = product.RepresentativeImage; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("file-content", __ECommerce_UI_AdminSite_Infrastructure_ImageTagHelper.FileContent, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 24 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" AddHtmlAttributeValue("", 982, product.ProductTypeName, 982, 24, false); #line default #line hidden EndAddHtmlAttributeValues(__tagHelperExecutionContext); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1010, 2, true); WriteLiteral("\r\n"); EndContext(); #line 25 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" } else { #line default #line hidden BeginContext(1042, 7, true); WriteLiteral("\t\t\t\t\t\t\t"); EndContext(); BeginContext(1049, 83, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b12417", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "alt", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 28 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" AddHtmlAttributeValue("", 1111, productType.Name, 1111, 17, false); #line default #line hidden EndAddHtmlAttributeValues(__tagHelperExecutionContext); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1132, 2, true); WriteLiteral("\r\n"); EndContext(); #line 29 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" } #line default #line hidden BeginContext(1143, 33, true); WriteLiteral("\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t<h4>"); EndContext(); BeginContext(1176, 150, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b14472", async() => { BeginContext(1306, 16, false); #line 32 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" Write(productType.Name); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-productTypeId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 32 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" WriteLiteral(productType.Id); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["productTypeId"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-productTypeId", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["productTypeId"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1326, 7, true); WriteLiteral("</h4>\r\n"); EndContext(); #line 33 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" int categoryId = int.Parse(productType.CategoryId); #line default #line hidden BeginContext(1403, 24, true); WriteLiteral("\t\t\t\t\t\t\t<small>\r\n\t\t\t\t\t\t\t\t"); EndContext(); BeginContext(1428, 69, false); #line 36 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" Write(await Component.InvokeAsync("CategoryBreadCrumb", new { categoryId })); #line default #line hidden EndContext(); BeginContext(1497, 19, true); WriteLiteral("\r\n\t\t\t\t\t\t\t</small>\r\n"); EndContext(); BeginContext(1525, 33, true); WriteLiteral("\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t<h4>"); EndContext(); BeginContext(1558, 156, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b18583", async() => { BeginContext(1686, 24, false); #line 41 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" Write(updateRequest.SellerName); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-sellerId", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 41 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" WriteLiteral(updateRequest.SellerId); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["sellerId"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-sellerId", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["sellerId"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1714, 36, true); WriteLiteral("</h4>\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t"); EndContext(); BeginContext(1750, 296, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4886239f74ef5e1d1f9b93f49e6ab6c50ce3998b21702", async() => { BeginContext(1790, 50, true); WriteLiteral("\r\n\t\t\t\t\t\t\t<input name=\"productTypeId\" type=\"hidden\""); EndContext(); BeginWriteAttribute("value", " value=\"", 1840, "\"", 1876, 1); #line 45 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" WriteAttributeValue("", 1848, updateRequest.ProductTypeId, 1848, 28, false); #line default #line hidden EndWriteAttribute(); BeginContext(1877, 48, true); WriteLiteral(" />\r\n\t\t\t\t\t\t\t<input name=\"sellerId\" type=\"hidden\""); EndContext(); BeginWriteAttribute("value", " value=\"", 1925, "\"", 1956, 1); #line 46 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" WriteAttributeValue("", 1933, updateRequest.SellerId, 1933, 23, false); #line default #line hidden EndWriteAttribute(); BeginContext(1957, 82, true); WriteLiteral(" />\r\n\t\t\t\t\t\t\t<input type=\"submit\" value=\"Detail\" class=\"btn btn-primary\" />\r\n\t\t\t\t\t\t"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 44 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" AddHtmlAttributeValue("", 1764, formAction, 1764, 11, false); #line default #line hidden EndAddHtmlAttributeValues(__tagHelperExecutionContext); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2046, 25, true); WriteLiteral("\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n"); EndContext(); #line 51 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.AdminSite\Views\Shared\DisplayTemplates\ProductTypeUpdateRequestsTable.cshtml" } #line default #line hidden BeginContext(2077, 29, true); WriteLiteral("\t\t</tbody>\r\n\t</table>\r\n</div>"); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(30, 2, true); WriteLiteral("\r\n"); EndContext(); #line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml" ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService]; ProductTypeView productType = eCommerce.GetProductTypeBy((int)Model.SearchModel.ProductTypeId); #line default #line hidden BeginContext(232, 4, true); WriteLiteral("<h1>"); EndContext(); BeginContext(237, 16, false); #line 7 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml" Write(productType.Name); #line default #line hidden EndContext(); BeginContext(253, 9, true); WriteLiteral("</h1>\r\n\r\n"); EndContext(); #line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml" foreach (ProductView p in Model.Products) { #line default #line hidden BeginContext(309, 1, true); WriteLiteral("\t"); EndContext(); BeginContext(310, 43, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "65cce5245c63b3d2f52d1efb25ceb5ea0619909c8275", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); #line 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = p; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(353, 2, true); WriteLiteral("\r\n"); EndContext(); #line 12 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml" } #line default #line hidden BeginContext(358, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(360, 293, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "65cce5245c63b3d2f52d1efb25ceb5ea0619909c10174", async() => { BeginContext(645, 2, true); WriteLiteral("\r\n"); EndContext(); } ); __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper = CreateTagHelper <global::ECommerce.UI.MVC.Infrastructure.PageLinkTagHelper>(); __tagHelperExecutionContext.Add(__ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper); #line 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml" __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageModel = Model.PagingInfo; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); BeginWriteTagHelperAttribute(); #line 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml" WriteLiteral(ViewContext.RouteData.Values["Action"].ToString()); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageAction = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("page-action", __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageAction, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClass = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassNormal = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassSelected = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageClassDisabled = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); if (__ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageUrlValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("page-url-productTypeId", "ECommerce.UI.MVC.Infrastructure.PageLinkTagHelper", "PageUrlValues")); } #line 17 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Product\ProductType.cshtml" __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageUrlValues["productTypeId"] = Model.SearchModel.ProductTypeId; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("page-url-productTypeId", __ECommerce_UI_MVC_Infrastructure_PageLinkTagHelper.PageUrlValues["productTypeId"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(31, 2, true); WriteLiteral("\r\n"); EndContext(); #line 3 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" ECommerceService eCommerce = (ECommerceService)ViewData[GlobalViewBagKeys.ECommerceService]; ProductTypeView productType = eCommerce.GetProductTypeBy(Model.ProductTypeId); #line default #line hidden BeginContext(213, 5, true); WriteLiteral("\t<h1>"); EndContext(); BeginContext(219, 16, false); #line 6 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" Write(productType.Name); #line default #line hidden EndContext(); BeginContext(235, 7, true); WriteLiteral("</h1>\r\n"); EndContext(); BeginContext(245, 2996, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0837b25302b4e45c839504f642d440e00439bd0d10712", async() => { BeginContext(322, 3, true); WriteLiteral("\r\n\t"); EndContext(); BeginContext(325, 66, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0837b25302b4e45c839504f642d440e00439bd0d11096", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper); #line 9 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary = global::Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary.ModelOnly; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-summary", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationSummaryTagHelper.ValidationSummary, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(391, 5, true); WriteLiteral("\r\n\r\n\t"); EndContext(); BeginContext(396, 47, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d12889", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); #line 11 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProductTypeId); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(443, 33, true); WriteLiteral("\r\n\r\n\t<div class=\"form-group\">\r\n\t\t"); EndContext(); BeginContext(476, 65, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("label", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0837b25302b4e45c839504f642d440e00439bd0d14759", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper); #line 14 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateModel.Price); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_LabelTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(541, 4, true); WriteLiteral("\r\n\t\t"); EndContext(); BeginContext(545, 58, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d16473", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper); #line 15 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateModel.Price); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(603, 4, true); WriteLiteral("\r\n\t\t"); EndContext(); BeginContext(607, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("span", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0837b25302b4e45c839504f642d440e00439bd0d18181", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper); #line 16 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateModel.Price); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("asp-validation-for", __Microsoft_AspNetCore_Mvc_TagHelpers_ValidationMessageTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(679, 256, true); WriteLiteral(@" </div> <table class=""table table-striped table-bordered table-hover table-condensed table-sm table-active table-secondary mw-100""> <thead class=""thead-dark""> <tr> <th>Attribute</th> <th>Values</th> </tr> </thead> <tbody> "); EndContext(); #line 27 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" short attributeCount = 0; if (Model.UpdateModel.Attributes != null) { foreach (var attribute in Model.UpdateModel.Attributes) { #line default #line hidden BeginContext(1097, 74, true); WriteLiteral("\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td><input name=\"keys\" class=\"form-control\" type=\"text\""); EndContext(); BeginWriteAttribute("value", " value=\"", 1171, "\"", 1193, 1); #line 34 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" WriteAttributeValue("", 1179, attribute.Key, 1179, 14, false); #line default #line hidden EndWriteAttribute(); BeginContext(1194, 63, true); WriteLiteral(" /></td>\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t<input name=\"values\" type=\"text\""); EndContext(); BeginWriteAttribute("value", " value=\"", 1257, "\"", 1299, 1); #line 36 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" WriteAttributeValue("", 1265, string.Join(',', attribute.Value), 1265, 34, false); #line default #line hidden EndWriteAttribute(); BeginContext(1300, 54, true); WriteLiteral(" data-role=\"tagsinput\" />\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>\r\n"); EndContext(); #line 39 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" attributeCount++; } } while (attributeCount++ < Model.ProductAttributesNumber) { #line default #line hidden BeginContext(1463, 185, true); WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td><input name=\"keys\" class=\"form-control\" type=\"text\" /></td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<input name=\"values\" type=\"text\" data-role=\"tagsinput\" />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n"); EndContext(); #line 50 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" } #line default #line hidden BeginContext(1661, 251, true); WriteLiteral("\t\t<tbody>\r\n\t\t<tfoot>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\" class=\"changeAttributeNumber\">\r\n\t\t\t\t\t<div class=\"input-group\">\r\n\t\t\t\t\t\t<div class=\"input-group-prepend\">\r\n\t\t\t\t\t\t\t<span class=\"input-group-text\">Change attribute number here</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t"); EndContext(); BeginContext(1912, 105, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d22920", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); #line 60 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.ProductAttributesNumber); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2017, 61, true); WriteLiteral("\r\n\t\t\t\t\t\t<input type=\"hidden\" class=\"changeAttributeNumberUrl\""); EndContext(); BeginWriteAttribute("value", " value=\"", 2078, "\"", 2151, 1); #line 61 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" WriteAttributeValue("", 2086, Url.Action("Index", new { productTypeId = Model.ProductTypeId }), 2086, 65, false); #line default #line hidden EndWriteAttribute(); BeginContext(2152, 300, true); WriteLiteral(@" /> <div class=""input-group-append""> <button class=""changeAttributeNumberBtn btn btn-primary"">Change</button> </div> </div> </td> </tr> </tfoot> </table> <div class=""form-group""> <label class=""control-label"">Product's representative image:</label> " ); EndContext(); BeginContext(2452, 94, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d25702", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_7.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7); #line 73 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateRepresentativeImage); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2546, 289, true); WriteLiteral(@"Check if update <div class=""file-loading""> <input id=""representativeImageFileInput"" class=""file registerProductFileInput"" name=""representativeImage"" type=""file"" disabled /> </div> </div> <div class=""form-group""> <label class=""control-label"">Product's images:</label> " ); EndContext(); BeginContext(2835, 68, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0837b25302b4e45c839504f642d440e00439bd0d27934", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8); __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_7.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7); #line 81 "C:\Users\hando\Desktop\ECommerce\ECommerce.UI.MVC\Views\Seller\UpdateProduct.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.UpdateImages); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("asp-for", __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2903, 331, true); WriteLiteral(@"Check if update <div class=""file-loading""> <input id=""imagesFileInput"" class=""file registerProductFileInput"" name=""images"" type=""file"" multiple disabled /> </div> </div> <input type=""submit"" value=""Update product"" class=""btn btn-success"" /> <input type=""reset"" class=""btn btn-outline-secondary"" value=""Reset"" /> "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_9.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_10.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(3241, 1353, true); WriteLiteral(@" <script type=""text/javascript""> //change attribute number on click $('.changeAttributeNumberBtn').click(function (event) { event.preventDefault(); $container = $(this).closest('.changeAttributeNumber'); $value = $container.find('.changeAttributeNumberValue').val(); $link = $container.find('.changeAttributeNumberUrl').val(); window.location.replace($link + '&productAttributesNumber=' + $value); }); //upload images $('.registerProductFileInput').fileinput({ allowedFileExtensions: ['jpg', 'png', 'gif', 'jpeg'], removeClass: 'btn btn-danger', showUpload: false, allowedFileTypes: ['image'], maxFileSize: '2000', theme: 'fas', browseOnZoneClick: 'true' }); //checkboxes always start unchecked $('#representativeImageCheckbox').prop('checked', false); $('#imagesCheckbox').prop('checked', false); //disable file input when uncheck check box $('#representativeImageCheckbox').change(function () { var fileInput = $('#representativeImageFi" ); WriteLiteral(@"leInput'); if (this.checked) { fileInput.fileinput('enable'); } else fileInput.fileinput('disable'); }); $('#imagesCheckbox').change(function () { var fileInput = $('#imagesFileInput'); if (this.checked) { fileInput.fileinput('enable'); } else fileInput.fileinput('disable'); }); </script>"); EndContext(); }