public JsonResult GetGRMItemsDetails(int?PIId) { PDService service = new PDService(); POItemList user = new POItemList(); user = service.GetPOItem(PIId); return(Json(new { up = user.PIUnitPrice, des = user.PIDescription, qty = user.PIQuantity }, JsonRequestBehavior.AllowGet)); }
public ActionResult AddProduct(int?PIId) { PDService service = new PDService(); POItemList Product = new POItemList(); if (PIId != null) { Product = service.GetPOItem(PIId); } ViewBag.MainAssests = new SelectList(AllMainAssests(), "Value", "Text"); ViewBag.SubAssests = new SelectList(GetSubCatogoryForMC(Product.MCId), "Value", "Text"); ViewBag.ProductName = new SelectList(GetProductForSC(Product.SCId), "Value", "Text"); return(PartialView("_AddProduct", Product)); }