public ActionResult GetAllStudentLogs(string Search, string AccountID, string StartDate, string EndDate, int PageIndex, int PageSize)
        {
            int Count = 0;
            Dictionary <string, object> data = new Dictionary <string, object>();
            // Dictionary<string, object> data = new Dictionary<string, object>();
            LogsBLL MemberBLL = new LogsBLL();

            if (StartDate == null)
            {
                StartDate = string.Empty;
            }
            if (EndDate == null)
            {
                EndDate = string.Empty;
            }
            if (AccountID == null)
            {
                AccountID = string.Empty;
            }
            if (Search == "-")
            {
                Search = string.Empty;
            }
            var datas = MemberBLL.GetAllStudentLogs(Search, AccountID, StartDate, EndDate, PageIndex, PageSize, out Count);
            Dictionary <string, object> retData = new Dictionary <string, object>();

            data.Add("total", Count);
            data.Add("data", datas);
            //  retData.Add("total", count);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public ActionResult GetAllStudentLogs(string Search, string AccountID, string StartDate, string EndDate, int PageIndex, int PageSize)
        {
            int Count = 0;
            Dictionary <string, object> data = new Dictionary <string, object>();
            // Dictionary<string, object> data = new Dictionary<string, object>();
            LogsBLL MemberBLL = new LogsBLL();


            var datas = MemberBLL.GetAllStudentLogs(Search, AccountID, StartDate, EndDate, PageIndex, PageSize, out Count);
            //s  var recentLogs = GetAllStudentLogs(Search, AccountID, StartDate, EndDate, PageIndex, PageSize);
            Dictionary <string, object> retData = new Dictionary <string, object>();

            data.Add("data", datas);
            //  retData.Add("total", count);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }