public ResponseModel GetIssueType(string SearchText) { ResponseModel objResponseModel = new ResponseModel(); List <IssueTypeList> objIssueTypeResponseModel = new List <IssueTypeList>(); 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(); objIssueTypeResponseModel = newCRM.BindIssueTypeList(new SLAServices(Cache, Db), authenticate.TenantId, SearchText); statusCode = objIssueTypeResponseModel.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 = objIssueTypeResponseModel; } catch (Exception) { throw; } return(objResponseModel); }