public static List <Common.Data.Models.PhysicalWallDto> GetDtoPhysicalWallListFromMcPhysicalWallList(IEnumerable <McPhysicalWall> McPhysicalWallList)
        {
            List <Common.Data.Models.PhysicalWallDto> dtoPhysicalWallList = new List <Common.Data.Models.PhysicalWallDto>();

            foreach (var McPhysicalWall in McPhysicalWallList)
            {
                dtoPhysicalWallList.Add(PhysicalWallMapper.GetDtoPhysicalWallFromMcPhysicalWall(McPhysicalWall));
            }

            return(dtoPhysicalWallList);
        }
        public static ObservableCollection <McPhysicalWall> GetMcPhysicalWallListFromDtoPhysicalWallList(IEnumerable <McSourceInstance> sourceInstances, IEnumerable <Common.Data.Models.PhysicalWallDto> dtoPhysicalWallList)
        {
            ObservableCollection <McPhysicalWall> McPhysicalWallList = new ObservableCollection <McPhysicalWall>();

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

            return(McPhysicalWallList);
        }