yavsc/yavscModel/Blogs/BlogEditEntryModel.cs

28 lines
563 B
C#
Raw Normal View History

2014-07-16 20:35:03 +02:00
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace yavscModel.Blogs
2014-07-16 20:35:03 +02:00
{
public class BlogEditEntryModel:BlogEntry
{
[DisplayName("Prévisualiser")]
[Required]
public bool Preview { get; set; }
public BlogEditEntryModel ()
{
}
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;
}
}
}