Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IBlogModelFactory.cs

using Nop.Core.Domain.Blogs;
using Nop.Web.Models.Blogs;

namespace Nop.Web.Factories;

/// 
/// Represents the interface of the blog model factory
/// 
public partial interface IBlogModelFactory
{
    /// 
    /// Prepare blog post model
    /// 
    /// Blog post model
    /// Blog post entity
    /// Whether to prepare blog comments
    /// A task that represents the asynchronous operation
    Task PrepareBlogPostModelAsync(BlogPostModel model, BlogPost blogPost, bool prepareComments);

    /// 
    /// Prepare blog post list model
    /// 
    /// Blog paging filtering model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the blog post list model
    /// 
    Task PrepareBlogPostListModelAsync(BlogPagingFilteringModel command);

    /// 
    /// Prepare blog post tag list model
    /// 
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the blog post tag list model
    /// 
    Task PrepareBlogPostTagListModelAsync();

    /// 
    /// Prepare blog post year models
    /// 
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the list of blog post year model
    /// 
    Task> PrepareBlogPostYearModelAsync();

    /// 
    /// Prepare blog comment model
    /// 
    /// Blog comment entity
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the blog comment model
    /// 
    Task PrepareBlogPostCommentModelAsync(BlogComment blogComment);
}