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.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);
}