using System.ComponentModel.DataAnnotations; using API.Class; namespace API.Models; public class ProductCategory { [Key] public int Id { get; set; } [Required] public string Label { get; set; } [Required] public List Products { get; set; } }