コード例 #1
0
        public static List <ShopDTO> DALListToDTO(List <Shop> shops)
        {
            List <ShopDTO> shopDTOList = new List <ShopDTO>();

            shops.ForEach(shop => shopDTOList.Add(ShopConverter.DALToDTO(shop)));
            return(shopDTOList);
        }
コード例 #2
0
        public static List <CategoryDTO> DALListToDTO(List <Category> categories)
        {
            List <CategoryDTO> categoryDTOList = new List <CategoryDTO>();

            categories.ForEach(category => categoryDTOList.Add(ShopConverter.DALToDTO(category)));
            return(categoryDTOList);
        }