/// <summary> /// Used to add the sub request /// </summary> /// <param name="subRequest">Sub request</param> /// <param name="dataElement">Date elements list</param> public void AddSubRequest(FsshttpbCellSubRequest subRequest, List <DataElement> dataElement) { if (this.SubRequests == null) { this.SubRequests = new List <FsshttpbCellSubRequest>(); } this.SubRequests.Add(subRequest); // Add the sub-request mapping for further validation usage. MsfsshttpbSubRequestMapping.Add((int)subRequest.RequestID, subRequest.GetType(), SharedContext.Current.Site); if (dataElement != null) { if (this.DataElementPackage == null) { this.DataElementPackage = new DataElementPackage(); } this.DataElementPackage.DataElements.AddRange(dataElement); } }
/// <summary> /// Used to add the sub request /// </summary> /// <param name="subRequest">Sub request</param> /// <param name="dataElement">Date elements list</param> public void AddSubRequest(FsshttpbCellSubRequest subRequest, List<DataElement> dataElement) { if (this.SubRequests == null) { this.SubRequests = new List<FsshttpbCellSubRequest>(); } this.SubRequests.Add(subRequest); // Add the sub-request mapping for further validation usage. MsfsshttpbSubRequestMapping.Add((int)subRequest.RequestID, subRequest.GetType(), SharedContext.Current.Site); if (dataElement != null) { if (this.DataElementPackage == null) { this.DataElementPackage = new DataElementPackage(); } this.DataElementPackage.DataElements.AddRange(dataElement); } }