public ResponseModel GetItemList() { List <ItemModel> objitem = new List <ItemModel>(); ResponseModel objResponseModel = new ResponseModel(); int StatusCode = 0; string statusMessage = ""; try { string token = Convert.ToString(Request.Headers["X-Authorized-Token"]); Authenticate authenticate = new Authenticate(); authenticate = SecurityService.GetAuthenticateDataFromToken(_radisCacheServerAddress, SecurityService.DecryptStringAES(token)); MasterCaller newMasterCategory = new MasterCaller(); objitem = newMasterCategory.GetItemList(new ItemService(_connectioSting), authenticate.TenantId); StatusCode = objitem.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 = objitem; } catch (Exception) { throw; } return(objResponseModel); }