public static List <Common.Data.Models.DigitalWallDto> GetDtoDigitalWallListFromDcDigitalWallList(IEnumerable <DcDigitalWall> DcDigitalWallList)
        {
            List <Common.Data.Models.DigitalWallDto> dtoDigitalWallList = new List <Common.Data.Models.DigitalWallDto>();

            foreach (var DcDigitalWall in DcDigitalWallList)
            {
                dtoDigitalWallList.Add(DigitalWallMapper.GetDtoDigitalWallFromDcDigitalWall(DcDigitalWall));
            }

            return(dtoDigitalWallList);
        }
        public static ObservableCollection <DcDigitalWall> GetDcDigitalWallListFromDtoDigitalWallList(IEnumerable <DcSourceInstance> sourceInstances, IEnumerable <Common.Data.Models.DigitalWallDto> dtoDigitalWallList)
        {
            ObservableCollection <DcDigitalWall> DcDigitalWallList = new ObservableCollection <DcDigitalWall>();

            foreach (var dtoDigitalWall in dtoDigitalWallList)
            {
                var matchingSourceInstanceList = sourceInstances.Where(s => s.WallId == dtoDigitalWall.Id);
                var matchingSourceInstanceOc   = new ObservableCollection <DcSourceInstance>(matchingSourceInstanceList);
                DcDigitalWallList.Add(DigitalWallMapper.GetDcDigitalWallFromDtoDigitalWallAndSourceInstances(dtoDigitalWall, matchingSourceInstanceOc));
            }

            return(DcDigitalWallList);
        }