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.News;
using Grand.Web.AdminShared.Models.News;
namespace Grand.Web.AdminShared.Interfaces;
public interface INewsViewModelService
{
Task<(IEnumerable<NewsItemModel> newsItemModels, int totalCount)> PrepareNewsItemModel(NewsItemListModel model,
int pageIndex, int pageSize);
Task<NewsItem> InsertNewsItemModel(NewsItemModel model);
Task<NewsItem> UpdateNewsItemModel(NewsItem newsItem, NewsItemModel model);
Task<(IEnumerable<NewsCommentModel> newsCommentModels, int totalCount)> PrepareNewsCommentModel(
string filterByNewsItemId, int pageIndex, int pageSize);
Task CommentDelete(NewsComment model);
}