using System.ComponentModel.DataAnnotations;

namespace MemberCenter.Web.Models.Admin;

public sealed class NewsletterListFormViewModel
{
    public Guid? Id { get; set; }

    [Display(Name = "Tenant")]
    [Required(ErrorMessage = "The {0} field is required.")]
    public Guid TenantId { get; set; }

    public IReadOnlyList<MemberCenter.Application.Models.Admin.TenantDto> Tenants { get; set; }
        = Array.Empty<MemberCenter.Application.Models.Admin.TenantDto>();

    [Display(Name = "Name")]
    [Required(ErrorMessage = "The {0} field is required.")]
    public string Name { get; set; } = string.Empty;

    [Display(Name = "Status")]
    [Required(ErrorMessage = "The {0} field is required.")]
    public string Status { get; set; } = "active";
}
