Webiant Logo Webiant Logo
  1. No results found.

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

NewsContentModel.cs

using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.News;

/// 
/// Represents a news content model
/// 
public partial record NewsContentModel : BaseNopModel
{
    #region Ctor

    public NewsContentModel()
    {
        NewsItems = new NewsItemSearchModel();
        NewsComments = new NewsCommentSearchModel();
        SearchTitle = new NewsItemSearchModel().SearchTitle;
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Admin.ContentManagement.News.NewsItems.List.SearchTitle")]
    public string SearchTitle { get; set; }

    public NewsItemSearchModel NewsItems { get; set; }

    public NewsCommentSearchModel NewsComments { get; set; }

    #endregion
}