public EntityListReportGroupedDTO ToEntityListReportGroupedDTO(EntityListReportGrouped item, bool withDetails)
        {
            EntityListReportGroupedDTO result = new EntityListReportGroupedDTO();

            result.ID = item.ID;
            result.EntityListReportID = item.EntityListReportID;
            bizEntityReport.ToEntityReportDTO(item.EntityReport, result as EntityReportDTO, withDetails);


            if (withDetails)
            {
                BizEntityListReport bizEntityListReport = new BizEntityListReport();



                result.EntityListReport = bizEntityListReport.ToEntityListReportDTO(item.EntityListReport, true);
                //foreach (var sub in item.ReportGroups)
                //{
                //    ReportGroupDTO rColumn = new ReportGroupDTO();
                //    rColumn.ID = sub.ID;
                //    rColumn.ListViewColumnID = sub.EntityListViewColumnsID;
                //    rColumn.EntityListViewColumn = result.EntityListReport.EntityListView.EntityListViewAllColumns.First(x => x.ID == sub.EntityListViewColumnsID);
                //    rColumn.ColumnName = rColumn.EntityListViewColumn.Column.Alias;
                //    result.ReportGroups.Add(rColumn);
                //}
            }

            return(result);
        }