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.Catalog;

public class BulkEditListModel : BaseModel
{
    [GrandResourceDisplayName("Admin.Catalog.BulkEdit.List.SearchProductName")]
    public string SearchProductName { get; set; }

    [UIHint("Category")]
    [GrandResourceDisplayName("Admin.Catalog.BulkEdit.List.SearchCategory")]
    public string SearchCategoryId { get; set; }

    [GrandResourceDisplayName("Admin.Catalog.Products.List.Brand")]
    [UIHint("Brand")]
    public string SearchBrandId { get; set; }

    [UIHint("Collection")]
    [GrandResourceDisplayName("Admin.Catalog.BulkEdit.List.SearchCollection")]
    public string SearchCollectionId { get; set; }

    [GrandResourceDisplayName("Admin.Catalog.Products.List.SearchProductType")]
    public int SearchProductTypeId { get; set; }

    [GrandResourceDisplayName("Admin.Catalog.Products.List.SearchStore")]
    public string SearchStoreId { get; set; }

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