Webiant Logo Webiant Logo
  1. No results found.

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

INewsModelFactory.cs

using Nop.Core.Domain.News;
using Nop.Web.Areas.Admin.Models.News;

namespace Nop.Web.Areas.Admin.Factories;

/// 
/// Represents the news model factory
/// 
public partial interface INewsModelFactory
{
    /// 
    /// Prepare news content model
    /// 
    /// News content model
    /// Filter by news item ID
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the news content model
    /// 
    Task PrepareNewsContentModelAsync(NewsContentModel newsContentModel, int? filterByNewsItemId);

    /// 
    /// Prepare paged news item list model
    /// 
    /// News item search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the news item list model
    /// 
    Task PrepareNewsItemListModelAsync(NewsItemSearchModel searchModel);

    /// 
    /// Prepare news item model
    /// 
    /// News item model
    /// News item
    /// Whether to exclude populating of some properties of model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the news item model
    /// 
    Task PrepareNewsItemModelAsync(NewsItemModel model, NewsItem newsItem, bool excludeProperties = false);

    /// 
    /// Prepare news comment search model
    /// 
    /// News comment search model
    /// News item
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the news comment search model
    /// 
    Task PrepareNewsCommentSearchModelAsync(NewsCommentSearchModel searchModel, NewsItem newsItem);

    /// 
    /// Prepare paged news comment list model
    /// 
    /// News comment search model
    /// News item ID; pass null to prepare comment models for all news items
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the news comment list model
    /// 
    Task PrepareNewsCommentListModelAsync(NewsCommentSearchModel searchModel, int? newsItemId);

    /// 
    /// Prepare news item search model
    /// 
    /// News item search model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the news item search model
    /// 
    Task PrepareNewsItemSearchModelAsync(NewsItemSearchModel searchModel);
}