26 lines
741 B
C#
26 lines
741 B
C#
namespace Commerce.Contracts.DTOs;
|
|
|
|
public class CategoryVM
|
|
{
|
|
public Guid? Id { get; set; }
|
|
public string[]? Photos { get; set; }
|
|
public Guid? ParentCategoryId { get; set; }
|
|
public ICollection<CategoryVM>? ChildCategories { get; set; }
|
|
public bool IsBundle { get; set; }
|
|
|
|
public List<CategoryTranslationVM> Translations { get; set; } = new();
|
|
}
|
|
|
|
public class CategoryTranslationVM
|
|
{
|
|
public string Language { get; set; } = string.Empty;
|
|
public CategoryInfoVM Info { get; set; } = new();
|
|
}
|
|
|
|
public class CategoryInfoVM
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public string Description { get; set; } = string.Empty;
|
|
public List<TechnicalDetailVM> TechnicalDetails { get; set; } = new();
|
|
}
|