Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

DateTimeSettingsModel.cs

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

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

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

    public DateTimeSettingsModel()
    {
        AvailableTimeZones = new List();
    }

    #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 AvailableTimeZones { get; set; }

    #endregion
}