yavsc/yavscModel/Blogs/BlogEditCommentModel.cs

26 lines
536 B
C#

using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace yavscModel.Blogs
{
public class BlogEditCommentModel:Comment
{
[DisplayName("Prévisualiser")]
[Required]
public bool Preview { get; set; }
/* TODO Clean
public BlogEditCommentModel(Comment be) {
this.Preview = true;
this.Content = be.Content;
this.Posted = be.Posted;
this.Modified = be.Modified;
this.Visible = be.Visible;
this.From = be.From;
this.PostId = be.PostId;
this.Id = be.Id;
} */
}
}