Example #1
0
        public JsonResult GetExpenseSummaries()
        {
            IEnumerable <ExpenseSummary> expenseSummaryList = null;

            try
            {
                ExpenseManager expenseManager = new ExpenseManager();
                expenseSummaryList = expenseManager.GetExpenseSummaries(Convert.ToInt32(Session["UserID"]));
            }
            catch (Exception ex)
            {
                string sMessage = ex.Message;
            }
            var jsonResult = this.Json(expenseSummaryList, JsonRequestBehavior.AllowGet);

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