public IActionResult ForProduct(Guid productId) { ViewBag.Product = TypeProductBus.GetByProductIdAsync(productId).Result; ViewBag.ColorCodes = TypeProductBus.GetAllColorCodesAsync().Result.ToList(); ViewBag.Sizes = TypeProductBus.GetAllSizeCodesAsync().Result.ToList(); return(View()); }
public IActionResult SizeProduct(SizeMv size) { if (ModelState.IsValid) { if (TypeProductBus.CreateNewSizeProductAsync(size).Result) { TempData[ConstKey.Success] = "Success!"; } else { TempData[ConstKey.Error] = "Fail! Try Again."; } return(RedirectToAction("SizeProduct")); } ViewBag.Sizes = TypeProductBus.GetAllSizeCodesAsync().Result.ToList(); return(View()); }
public IActionResult SizeProduct() { ViewBag.Sizes = TypeProductBus.GetAllSizeCodesAsync().Result.ToList(); return(View()); }