//Account/AccountingReport/GlDateWiseTransactionData public JsonResult GlDateWiseTransactionData(int id, DateTime startDate, DateTime endDate) { Session["rptSource"] = _db.spGl_DateWiseTransaction(startDate, endDate, id).ToList(); int data = _db.spGl_DateWiseTransaction(startDate, endDate, id).ToList().Count(); return(Json(data > 0, JsonRequestBehavior.AllowGet)); }