private List <PreparerCodeProductivityItem> GetDummyPrepCodeProductivityData(PreparerCodeProductivitySearch search)
        {
            var items = new List <PreparerCodeProductivityItem>()
            {
                new PreparerCodeProductivityItem
                {
                    PreparerCode  = "2H",
                    ExceptionCode = "P201",
                    Total         = 20,
                    Reject        = 1,
                    Accept        = 5,
                    Skip          = 1,
                    NextDay       = 1,
                    DoqReq        = 2,
                    Change        = 5,
                    Other         = 3,
                    Cleared       = 2
                },
                new PreparerCodeProductivityItem
                {
                    PreparerCode  = "2H",
                    ExceptionCode = "R200",
                    Total         = 25,
                    Reject        = 2,
                    Accept        = 12,
                    Skip          = 2,
                    NextDay       = 2,
                    DoqReq        = 3,
                    Change        = 4,
                    Other         = 3,
                    Cleared       = 2
                },
                new PreparerCodeProductivityItem
                {
                    PreparerCode  = "3H",
                    ExceptionCode = "P039",
                    Total         = 21,
                    Reject        = 2,
                    Accept        = 5,
                    Skip          = 1,
                    NextDay       = 1,
                    DoqReq        = 2,
                    Change        = 5,
                    Other         = 3,
                    Cleared       = 2
                },
            };

            return(items);
        }
        public ActionResult PreparerCodeProductivity([DataSourceRequest] DataSourceRequest request, PreparerCodeProductivitySearch search)
        {
            var items = GetDummyPrepCodeProductivityData(search).AsQueryable();

            if (!string.IsNullOrWhiteSpace(search.PreparerCode))
            {
                items = items.Where(I => I.PreparerCode == search.PreparerCode);
            }
            var result = items.ToDataSourceResult(request);

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