//Account/AccountingReport/DateWiseTransactionData public JsonResult DateWiseTransactionData(DateTime startDate, DateTime endDate) { Session["rptSource"] = _db.spDateWiseTransaction(startDate, endDate).ToList(); Session["FromDate"] = startDate; Session["ToDate"] = endDate; var data = _db.spDateWiseTransaction(startDate, endDate).ToList().Count(); return(Json(data > 0, JsonRequestBehavior.AllowGet)); }