public double WholesaleID(int size, int packege) { _wholesaleHandler.Add(new WholeSaleViewModel { Package = size, Size = packege }); return(_wholesaleHandler.GetId(size, packege)); }
public IActionResult Index(WholeSaleViewModel model) { var result = _wholesaleHandler.Add(model); if (ModelState.IsValid || result) { return(RedirectToAction("Index", "Product")); } return(View()); }