CSP_Web.Controllers.CustomerController.GetCustomers C# (CSharp) Method

GetCustomers() private method

private GetCustomers ( int jtStartIndex, int jtPageSize, string jtSorting = null ) : System.Web.Mvc.JsonResult
jtStartIndex int
jtPageSize int
jtSorting string
return System.Web.Mvc.JsonResult
        public JsonResult GetCustomers(int jtStartIndex = 0, int jtPageSize = 0, string jtSorting = null)
        {
            if (graphService.app_id != resellerService.graph_app_id || !graphService.initialized)
                graphService.Initialize(resellerService.tenant_name, resellerService.graph_app_id, resellerService.graph_app_key);

            List<Contract> contracts = graphService.GetContracts().OrderBy(x => x.displayName).ToList();

            return Json(new { Result = "OK", Records = contracts, TotalRecordCount = contracts.Count });
        }