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.Catalog;
using Grand.Web.AdminShared.Models.Catalog;
namespace Grand.Web.AdminShared.Interfaces;
public interface ICollectionViewModelService
{
void PrepareSortOptionsModel(CollectionModel model);
Task PrepareLayoutsModel(CollectionModel model);
Task PrepareDiscountModel(CollectionModel model, Collection collection, bool excludeProperties);
Task<Collection> InsertCollectionModel(CollectionModel model);
Task<Collection> UpdateCollectionModel(Collection collection, CollectionModel model);
Task DeleteCollection(Collection collection);
Task<CollectionModel.AddCollectionProductModel> PrepareAddCollectionProductModel(string storeId);
Task<(IList<ProductModel> products, int totalCount)> PrepareProductModel(
CollectionModel.AddCollectionProductModel model, int pageIndex, int pageSize);
Task<(IEnumerable<CollectionModel.CollectionProductModel> collectionProductModels, int totalCount)>
PrepareCollectionProductModel(string collectionId, string storeId, int pageIndex, int pageSize);
Task ProductUpdate(CollectionModel.CollectionProductModel model);
Task ProductDelete(string id, string productId);
Task InsertCollectionProductModel(CollectionModel.AddCollectionProductModel model);
}