//details public IActionResult PendingProductDetails(int?id) { if (id == null) { return(RedirectToAction("PendingProductInfo")); } var response = _product.DetailsForApproved(id.GetValueOrDefault()); ViewBag.Brands = new SelectList(_brand.CatalogWiseDdl(response.Data.CatalogId).Data, "value", "label"); return(View(response.Data)); }
//Add product #region Add Product public IActionResult AddProduct(int?id) { if (!id.HasValue) { return(RedirectToAction("ProductCategory")); } ViewBag.Brands = new SelectList(_brand.CatalogWiseDdl(id.Value).Data, "value", "label"); ViewBag.Attributes = new SelectList(_attribute.CatalogWiseDdl(id.Value).Data, "value", "label"); ViewBag.Specifications = new SelectList(_specifications.CatalogWiseDdl(id.Value).Data, "value", "label"); return(View()); }