public JsonResult SearchPurchase(LP_PurchaseReturnVM_Property objsale) { int salesIdx = int.Parse(objsale.PurhaseInvoiceNumber.ToString()); var Data = JsonConvert.SerializeObject(GetAllSalesDetailsByIdx(salesIdx)); return(Json(new { data = Data }, JsonRequestBehavior.AllowGet)); }
public ActionResult PurchaseReturn() { LP_PurchaseReturnVM_Property obj = new LP_PurchaseReturnVM_Property(); LP_PInvoice_BLL objPIBLL = new LP_PInvoice_BLL(); obj.VendorLST = Helper.ConvertDataTable <Vendors_Property>(GetAllVendors()); obj.PurchaseLST = Helper.ConvertDataTable <LP_P_Invoice_Property>(objPIBLL.SelectAll()); return(View(obj)); }