57 lines
1.8 KiB
C#
57 lines
1.8 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
using Nop.Web.Framework.Models;
|
|
using Nop.Web.Framework.Mvc.ModelBinding;
|
|
|
|
namespace Nop.Web.Areas.Admin.Models.Messages;
|
|
|
|
/// <summary>
|
|
/// Represents a newsletter subscription search model
|
|
/// </summary>
|
|
public partial record NewsletterSubscriptionSearchModel : BaseSearchModel
|
|
{
|
|
#region Ctor
|
|
|
|
public NewsletterSubscriptionSearchModel()
|
|
{
|
|
AvailableStores = new List<SelectListItem>();
|
|
ActiveList = new List<SelectListItem>();
|
|
AvailableCustomerRoles = new List<SelectListItem>();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
[DataType(DataType.EmailAddress)]
|
|
[NopResourceDisplayName("Admin.Promotions.NewsLetterSubscriptions.List.SearchEmail")]
|
|
public string SearchEmail { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Promotions.NewsLetterSubscriptions.List.SearchStore")]
|
|
public int StoreId { get; set; }
|
|
|
|
public IList<SelectListItem> AvailableStores { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Promotions.NewsLetterSubscriptions.List.SearchActive")]
|
|
public int ActiveId { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Promotions.NewsLetterSubscriptions.List.SearchActive")]
|
|
public IList<SelectListItem> ActiveList { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Promotions.NewsLetterSubscriptions.List.CustomerRoles")]
|
|
public int CustomerRoleId { get; set; }
|
|
|
|
public IList<SelectListItem> AvailableCustomerRoles { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Promotions.NewsLetterSubscriptions.List.StartDate")]
|
|
[UIHint("DateNullable")]
|
|
public DateTime? StartDate { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Promotions.NewsLetterSubscriptions.List.EndDate")]
|
|
[UIHint("DateNullable")]
|
|
public DateTime? EndDate { get; set; }
|
|
|
|
public bool HideStoresList { get; set; }
|
|
|
|
#endregion
|
|
} |