Webiant Logo Webiant Logo
  1. No results found.

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

SampleNewsItem.cs

namespace Nop.Services.Installation.SampleData;

/// 
/// Represents a sample news item
/// 
public partial class SampleNewsItem
{
    /// 
    /// Gets or sets the news title
    /// 
    public string Title { get; set; }

    /// 
    /// Gets or sets the short text
    /// 
    public string Short { get; set; }

    /// 
    /// Gets or sets the full text
    /// 
    public string Full { get; set; }

    /// 
    /// Gets or sets a value indicating whether the news item is published
    /// 
    public bool Published { get; set; }

    /// 
    /// Gets or sets a value indicating whether the news post comments are allowed 
    /// 
    public bool AllowComments { get; set; }

    /// 
    /// Gets or sets the news comments
    /// 
    public List NewsComments { get; set; } = new();

    #region Nested class

    /// 
    /// Represents a sample news comment
    /// 
    public partial class SampleNewsComment
    {
        /// 
        /// Gets or sets the comment title
        /// 
        public string CommentTitle { get; set; }

        /// 
        /// Gets or sets the comment text
        /// 
        public string CommentText { get; set; }

        /// 
        /// Gets or sets a value indicating whether the comment is approved
        /// 
        public bool IsApproved { get; set; }
    }

    #endregion
}