public ActionResult InventoryPurchase_Report() { INV_PurchaseRepo dbs = new INV_PurchaseRepo(); int depid = Convert.ToInt32(Session["DepartmentId"]); var lst = dbs.GetPurchaseListDetail(depid, "", "", "", 0); ViewBag.VendorId = new SelectList(ddl.getVendorList(depid), "Id", "Name"); return(View(lst)); }