using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.Blogs
{
///
/// Blog edit entry model.
///
public class BlogEditEntryModel:BlogEntry
{
///
/// Gets or sets a value indicating whether this is preview.
///
/// true if preview; otherwise, false.
[DisplayName("Prévisualiser")]
[Required]
public bool Preview { get; set; }
///
/// Initializes a new instance of the class.
///
public BlogEditEntryModel ()
{
}
///
/// Initializes a new instance of the class.
///
/// Be.
public BlogEditEntryModel(BlogEntry be) {
this.Preview = true;
this.Content = be.Content;
this.Title = be.Title;
this.Posted = be.Posted;
this.Modified = be.Modified;
this.Visible = be.Visible;
this.UserName = be.UserName;
this.Id = be.Id;
}
}
}