//Purchase Result public ActionResult PurchaseResult(int?id) { if (id == null) { return(RedirectToAction("Error", "Home")); } PurchaseResultVM purchaseResultVM = purchaseBll.GetPurchaseDetail(id); if (purchaseResultVM == null) { return(RedirectToAction("Error", "Home")); } return(View(purchaseResultVM)); }
public JsonResult GetPurchaseDetilByConsignment(string consignmentNumber) { PurchaseBLL objPurchaseBLL = new PurchaseBLL(); var purchaseDetail = objPurchaseBLL.GetPurchaseDetail(consignmentNumber); return(Json(purchaseDetail, JsonRequestBehavior.AllowGet)); }