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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Infrastructure.ModelBinding;
using Grand.Infrastructure.Models;
using Grand.Infrastructure.Validators;
using Grand.Web.Common.Link;
using Grand.Web.Common.Models;
using System.ComponentModel.DataAnnotations;
namespace Grand.Web.AdminShared.Models.Messages;
public class NewsletterCategoryModel : BaseEntityModel, ILocalizedModel<NewsletterCategoryLocalizedModel>,
IStoreLinkModel
{
[GrandResourceDisplayName("admin.marketing.NewsletterCategory.Fields.Name")]
public string Name { get; set; }
[GrandResourceDisplayName("admin.marketing.NewsletterCategory.Fields.Description")]
[SanitizeHtml]
public string Description { get; set; }
[GrandResourceDisplayName("admin.marketing.NewsletterCategory.Fields.Selected")]
public bool Selected { get; set; }
[GrandResourceDisplayName("admin.marketing.NewsletterCategory.Fields.DisplayOrder")]
public int DisplayOrder { get; set; }
public IList<NewsletterCategoryLocalizedModel> Locales { get; set; } = new List<NewsletterCategoryLocalizedModel>();
[GrandResourceDisplayName("admin.marketing.NewsletterCategory.Fields.LimitedToStores")]
[UIHint("Stores")]
public string[] Stores { get; set; }
}
public class NewsletterCategoryLocalizedModel : ILocalizedModelLocal
{
[GrandResourceDisplayName("admin.marketing.NewsletterCategory.Fields.Name")]
public string Name { get; set; }
[GrandResourceDisplayName("admin.marketing.NewsletterCategory.Fields.Description")]
[SanitizeHtml]
public string Description { get; set; }
public string LanguageId { get; set; }
}