using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

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

/// <summary>
/// Represents a date time settings model
/// </summary>
public partial record DateTimeSettingsModel : BaseNopModel, ISettingsModel
{
    #region Ctor

    public DateTimeSettingsModel()
    {
        AvailableTimeZones = new List<SelectListItem>();
    }

    #endregion

    #region Properties

    public int ActiveStoreScopeConfiguration { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.CustomerUser.AllowCustomersToSetTimeZone")]
    public bool AllowCustomersToSetTimeZone { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.CustomerUser.DefaultStoreTimeZone")]
    public string DefaultStoreTimeZoneId { get; set; }

    [NopResourceDisplayName("Admin.Configuration.Settings.CustomerUser.DefaultStoreTimeZone")]
    public IList<SelectListItem> AvailableTimeZones { get; set; }

    #endregion
}