using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Catalog;

/// <summary>
/// Represents a product tag model
/// </summary>
public partial record ProductTagModel : BaseNopEntityModel, ILocalizedModel<ProductTagLocalizedModel>
{
    #region Ctor

    public ProductTagModel()
    {
        Locales = new List<ProductTagLocalizedModel>();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.Catalog.ProductTags.Fields.Name")]
    public string Name { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductTags.Fields.ProductCount")]
    public int ProductCount { get; set; }

    public IList<ProductTagLocalizedModel> Locales { get; set; }

    #endregion
}

public partial record ProductTagLocalizedModel : ILocalizedLocaleModel
{
    public int LanguageId { get; set; }

    [NopResourceDisplayName("Admin.Catalog.ProductTags.Fields.Name")]
    public string Name { get; set; }
}