using Nop.Core.Domain.Blogs; using Nop.Web.Areas.Admin.Models.Blogs; namespace Nop.Web.Areas.Admin.Factories; /// /// Represents the blog model factory /// public partial interface IBlogModelFactory { /// /// Prepare blog content model /// /// Blog content model /// Blog post ID /// /// A task that represents the asynchronous operation /// The task result contains the blog content model /// Task PrepareBlogContentModelAsync(BlogContentModel blogContentModel, int? filterByBlogPostId); /// /// Prepare paged blog post list model /// /// Blog post search model /// /// A task that represents the asynchronous operation /// The task result contains the blog post list model /// Task PrepareBlogPostListModelAsync(BlogPostSearchModel searchModel); /// /// Prepare blog post model /// /// Blog post model /// Blog post /// Whether to exclude populating of some properties of model /// /// A task that represents the asynchronous operation /// The task result contains the blog post model /// Task PrepareBlogPostModelAsync(BlogPostModel model, BlogPost blogPost, bool excludeProperties = false); /// /// Prepare blog comment search model /// /// Blog comment search model /// Blog post /// /// A task that represents the asynchronous operation /// The task result contains the blog comment search model /// Task PrepareBlogCommentSearchModelAsync(BlogCommentSearchModel searchModel, BlogPost blogPost); /// /// Prepare paged blog comment list model /// /// Blog comment search model /// Blog post ID /// /// A task that represents the asynchronous operation /// The task result contains the blog comment list model /// Task PrepareBlogCommentListModelAsync(BlogCommentSearchModel searchModel, int? blogPostId); /// /// Prepare blog post search model /// /// Blog post search model /// /// A task that represents the asynchronous operation /// The task result contains the blog post search model /// Task PrepareBlogPostSearchModelAsync(BlogPostSearchModel searchModel); }