/// <summary>
        /// Ts the generate related issue list from reader.
        /// </summary>
        /// <param name="returnData">The return data.</param>
        /// <param name="relatedIssueList">The related issue list.</param>
        private static void GenerateRelatedIssueListFromReader(IDataReader returnData,
                                                               ref List <RelatedIssue> relatedIssueList)
        {
            while (returnData.Read())
            {
                var relatedIssue = new RelatedIssue
                {
                    DateCreated = returnData.GetDateTime(returnData.GetOrdinal("DateCreated")),
                    IssueId     = returnData.GetInt32(returnData.GetOrdinal("IssueId")),
                    Resolution  = DefaultIfNull(returnData["IssueResolution"], string.Empty),
                    Status      = DefaultIfNull(returnData["IssueStatus"], string.Empty),
                    Title       = returnData.GetString(returnData.GetOrdinal("IssueTitle"))
                };

                relatedIssueList.Add(relatedIssue);
            }
        }
 void BindRelated()
 {
     grdIssues.DataSource   = RelatedIssue.GetParentIssues(_IssueId);
     grdIssues.DataKeyField = "IssueId";
     grdIssues.DataBind();
 }