Example #1
0
        public static List <Common.Data.Models.WallDto> GetDtoWallListFromEntWallList(IEnumerable <Wall> entWallList)
        {
            List <Common.Data.Models.WallDto> dtoWallList = new List <Common.Data.Models.WallDto>();

            foreach (var entWall in entWallList)
            {
                dtoWallList.Add(WallMapper.GetDtoWallFromEntWall(entWall));
            }

            return(dtoWallList);
        }
Example #2
0
        public static IEnumerable <Wall> GetEntWallListFromDtoWallList(IEnumerable <Common.Data.Models.WallDto> dtoWallList)
        {
            List <Wall> entWallList = new List <Wall>();

            foreach (var dtoWall in dtoWallList)
            {
                entWallList.Add(WallMapper.GetEntWallFromDtoWall(dtoWall));
            }

            return(entWallList);
        }