Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

1.3 KB
Raw Blame
using Grand.Infrastructure.ModelBinding;
using Grand.Infrastructure.Models;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.ComponentModel.DataAnnotations;

namespace Grand.Web.AdminShared.Models.Messages;

public class NewsLetterSubscriptionListModel : BaseModel
{
    [GrandResourceDisplayName("admin.marketing.NewsLetterSubscriptions.List.SearchEmail")]
    public string SearchEmail { get; set; }

    [GrandResourceDisplayName("admin.marketing.NewsLetterSubscriptions.List.SearchStore")]
    public string StoreId { get; set; }

    public IList<SelectListItem> AvailableStores { get; set; } = new List<SelectListItem>();

    [GrandResourceDisplayName("admin.marketing.NewsLetterSubscriptions.List.SearchActive")]
    public int ActiveId { get; set; }

    [GrandResourceDisplayName("admin.marketing.NewsLetterSubscriptions.List.SearchActive")]
    public IList<SelectListItem> ActiveList { get; set; } = new List<SelectListItem>();

    [GrandResourceDisplayName("admin.marketing.NewsLetterSubscriptions.List.Categories")]

    public IList<SelectListItem> AvailableCategories { get; set; } = new List<SelectListItem>();

    [GrandResourceDisplayName("admin.marketing.NewsLetterSubscriptions.List.Category")]
    [UIHint("MultiSelect")]
    public IList<string> SearchCategoryIds { get; set; } = new List<string>();
}