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 ICategoryViewModelService
{
Task<CategoryListModel> PrepareCategoryListModel(string storeId);
Task<(IEnumerable<CategoryModel> categoryListModel, int totalCount)> PrepareCategoryListModel(
CategoryListModel model, int pageIndex, int pageSize);
Task<CategoryModel> PrepareCategoryModel(string storeId);
Task<CategoryModel> PrepareCategoryModel(CategoryModel model, Category category, string storeId);
Task<Category> InsertCategoryModel(CategoryModel model);
Task<Category> UpdateCategoryModel(Category category, CategoryModel model);
Task DeleteCategory(Category category);
Task<(IEnumerable<CategoryModel.CategoryProductModel> categoryProductModels, int totalCount)>
PrepareCategoryProductModel(string categoryId, int pageIndex, int pageSize);
Task<ProductCategory> UpdateProductCategoryModel(CategoryModel.CategoryProductModel model);
Task DeleteProductCategoryModel(string id, string productId);
Task<CategoryModel.AddCategoryProductModel> PrepareAddCategoryProductModel(string storeId);
Task InsertCategoryProductModel(CategoryModel.AddCategoryProductModel model);
Task<(IList<ProductModel> products, int totalCount)> PrepareProductModel(
CategoryModel.AddCategoryProductModel model, int pageIndex, int pageSize);
}