Initial import
This commit is contained in:
parent
0c865416ca
commit
04804b89a9
279 changed files with 12945 additions and 0 deletions
26
yavscModel/Blogs/BlogEditCommentModel.cs
Normal file
26
yavscModel/Blogs/BlogEditCommentModel.cs
Normal 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;
|
||||
} */
|
||||
}
|
||||
}
|
||||
|
||||
29
yavscModel/Blogs/BlogEditEntryModel.cs
Normal file
29
yavscModel/Blogs/BlogEditEntryModel.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue