public OperationReturnModel <NewListItem> AddCustomInventoryItem(ListType type, long listId, long customInventoryId) { OperationReturnModel <NewListItem> returnValue = new OperationReturnModel <NewListItem>(); try { NewListItem listItem = new NewListItem() { Id = _listService.AddCustomInventory(this.AuthenticatedUser, this.SelectedUserContext, type, listId, customInventoryId) }; _cacheListLogic.ClearCustomersListCaches(this.AuthenticatedUser, this.SelectedUserContext, _listService.ReadUserList(this.AuthenticatedUser, this.SelectedUserContext, true)); returnValue.SuccessResponse = listItem; returnValue.IsSuccess = true; } catch (Exception ex) { returnValue.IsSuccess = false; returnValue.ErrorMessage = ex.Message; _elRepo.WriteErrorLog("Error adding custom inventory to list", ex); } return(returnValue); }