Initial import

This commit is contained in:
Paul Schneider 2014-07-16 20:35:03 +02:00
commit 04804b89a9
279 changed files with 12945 additions and 0 deletions

View file

@ -0,0 +1,26 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Npgsql.Web.Blog.DataModel;
namespace yavscModel
{
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;
} */
}
}

View file

@ -0,0 +1,29 @@
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;
}
}
}