public JsonResult GetRecords()
        {
            int      start        = int.Parse(HttpContext.Request["start"]);
            int      limit        = int.Parse(HttpContext.Request["limit"]);
            string   employeeCode = HttpContext.Request["Employee"];
            DateTime fromDate     = DateTime.Parse(HttpContext.Request["FromDate"]);
            DateTime toDate       = DateTime.Parse(HttpContext.Request["ToDate"]);

            int workRecordCount = WorkRecord.GetAllCount(employeeCode, fromDate, toDate);
            List <WorkRecord.DTO> workRecordSome = WorkRecord.GetSome(employeeCode, fromDate, toDate, start, limit);

            var result = new { totalProperty = workRecordCount, root = workRecordSome };

            return(Json(result));
        }
        public ActionResult Test(string EmployeeCode, string FromDate, string ToDate)
        {
            ViewData["Title"] = "Report2";

            ViewData["EmployeeCode"] = EmployeeCode;
            ViewData["FromDate"]     = FromDate;
            ViewData["ToDate"]       = ToDate;

            DateTime RealFromDate = DateTime.Parse(FromDate);
            DateTime RealToDate   = DateTime.Parse(ToDate);

            List <WorkRecord.DTO> workRecordSome = WorkRecord.GetSome(EmployeeCode, RealFromDate, RealToDate);

            ViewData["Records"] = workRecordSome;

            return(View());
        }