public ActionResult GetCandidateReport(DataTableFilterModel filter) { try { int currDate = Convert.ToInt32(Session["CurrentYear"]); DataTableFilterModel dataFilter = addmissionService.GetCandidateReport(filter, currDate); return(Json(new { draw = filter.draw, recordsFiltered = dataFilter.recordsFiltered, recordsTotal = dataFilter.recordsTotal, data = dataFilter.data }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { } return(Json(new { }, JsonRequestBehavior.AllowGet)); }