ProductDto.cs 406 B

1234567891011121314151617181920
  1. using Products.Common.Types;
  2. namespace Products.Common.Dtos;
  3. public class ProductDto
  4. {
  5. public ProductDto(string name, Color color, string brand, int id)
  6. {
  7. Name = name;
  8. Color = color;
  9. Brand = brand;
  10. Id = id;
  11. }
  12. public string Name { get; set; }
  13. public Color Color { get; set; }
  14. public string Brand { get; set; }
  15. public int Id { get; set; }
  16. }