Beispiel #1
0
        public JsonResult GetTimesheetEntries()
        {
            IEnumerable <Timesheet> timesheetList = null;

            try
            {
                TimesheetManager timesheetManager = new TimesheetManager();
                timesheetList = timesheetManager.GetTimesheetEntries(Convert.ToInt32(Session["AccountID"]));
            }
            catch (Exception ex)
            {
                string sMessage = ex.Message;
            }
            var jsonResult = this.Json(timesheetList, JsonRequestBehavior.AllowGet);

            jsonResult.MaxJsonLength = int.MaxValue;
            return(jsonResult);
        }