public ResponseModel GetSLA(int SLAFor = 1) { ResponseModel objResponseModel = new ResponseModel(); List <SLAResponseModel> objSLAResponseModel = new List <SLAResponseModel>(); int statusCode = 0; string statusMessage = ""; try { ////Get token (Double encrypted) and get the tenant id string token = Convert.ToString(Request.Headers["X-Authorized-Token"]); Authenticate authenticate = new Authenticate(); authenticate = SecurityService.GetAuthenticateDataFromTokenCache(Cache, SecurityService.DecryptStringAES(token)); SettingsCaller newCRM = new SettingsCaller(); //_objresponseModel = newCRM.SLAList(new SLAServices(_connectioSting), authenticate.TenantId, pageNo, PageSize); objSLAResponseModel = newCRM.SLAList(new SLAServices(Cache, Db), authenticate.TenantId, SLAFor); statusCode = objSLAResponseModel.Count == 0 ? (int)EnumMaster.StatusCode.RecordNotFound : (int)EnumMaster.StatusCode.Success; statusMessage = CommonFunction.GetEnumDescription((EnumMaster.StatusCode)statusCode); objResponseModel.Status = true; objResponseModel.StatusCode = statusCode; objResponseModel.Message = statusMessage; objResponseModel.ResponseData = objSLAResponseModel; } catch (Exception) { throw; } return(objResponseModel); }