public JsonResult GetItemSalesPrice(int id) { Item item = itemBll.GetById(id); var ItemPrice = item.SalePrice; return(Json(ItemPrice)); }
// GET: Items/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(RedirectToAction("Error", "Home")); } Item item = itemBll.GetById(id); if (item == null) { return(RedirectToAction("Error", "Home")); } ViewBag.ItemCategoryId = itemBll.GetItemCategory(); return(View(item)); }