public static List <ShopDTO> DALListToDTO(List <Shop> shops) { List <ShopDTO> shopDTOList = new List <ShopDTO>(); shops.ForEach(shop => shopDTOList.Add(ShopConverter.DALToDTO(shop))); return(shopDTOList); }
public static List <CategoryDTO> DALListToDTO(List <Category> categories) { List <CategoryDTO> categoryDTOList = new List <CategoryDTO>(); categories.ForEach(category => categoryDTOList.Add(ShopConverter.DALToDTO(category))); return(categoryDTOList); }