public static List <Common.Data.Models.PhysicalWallDto> GetDtoPhysicalWallListFromDcPhysicalWallList(IEnumerable <DcPhysicalWall> DcPhysicalWallList)
        {
            List <Common.Data.Models.PhysicalWallDto> dtoPhysicalWallList = new List <Common.Data.Models.PhysicalWallDto>();

            foreach (var DcPhysicalWall in DcPhysicalWallList)
            {
                dtoPhysicalWallList.Add(PhysicalWallMapper.GetDtoPhysicalWallFromDcPhysicalWall(DcPhysicalWall));
            }

            return(dtoPhysicalWallList);
        }
        public static ObservableCollection <DcPhysicalWall> GetDcPhysicalWallListFromDtoPhysicalWallList(IEnumerable <DcSourceInstance> sourceInstances, IEnumerable <Common.Data.Models.PhysicalWallDto> dtoPhysicalWallList)
        {
            ObservableCollection <DcPhysicalWall> DcPhysicalWallList = new ObservableCollection <DcPhysicalWall>();

            foreach (var dtoPhysicalWall in dtoPhysicalWallList)
            {
                var matchingSourceInstanceList = sourceInstances.Where(s => s.WallId == dtoPhysicalWall.Id);
                var matchingSourceInstanceOc   = new ObservableCollection <DcSourceInstance>(matchingSourceInstanceList);
                DcPhysicalWallList.Add(PhysicalWallMapper.GetDcPhysicalWallFromDtoPhysicalWallAndSourceInstances(dtoPhysicalWall, matchingSourceInstanceOc));
            }

            return(DcPhysicalWallList);
        }