30 lines
590 B
C#
30 lines
590 B
C#
10 years ago
|
using System;
|
||
|
using System.ComponentModel;
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
using Npgsql.Web.Blog.DataModel;
|
||
|
|
||
|
namespace yavscModel
|
||
|
{
|
||
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|