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.0 KB
Raw Blame
using Grand.Domain.Customers;
using Grand.Web.AdminShared.Models.Catalog;
using Grand.Web.AdminShared.Models.Customers;

namespace Grand.Web.AdminShared.Interfaces;

public interface ICustomerGroupViewModelService
{
    CustomerGroupModel PrepareCustomerGroupModel(CustomerGroup customerGroup);
    CustomerGroupModel PrepareCustomerGroupModel();
    Task<CustomerGroup> InsertCustomerGroupModel(CustomerGroupModel model);
    Task<CustomerGroup> UpdateCustomerGroupModel(CustomerGroup customerGroup, CustomerGroupModel model);
    Task DeleteCustomerGroup(CustomerGroup customerGroup);

    Task<(IList<ProductModel> products, int totalCount)> PrepareProductModel(
        CustomerGroupProductModel.AddProductModel model, int pageIndex, int pageSize);

    Task<IList<CustomerGroupProductModel>> PrepareCustomerGroupProductModel(string customerGroupId);
    Task<CustomerGroupProductModel.AddProductModel> PrepareProductModel(string customerGroupId);
    Task InsertProductModel(CustomerGroupProductModel.AddProductModel model);
}