refactoring the Register
This commit is contained in:
parent
ee1e49fde5
commit
f1dd648970
43 changed files with 4610 additions and 86 deletions
|
|
@ -11,16 +11,22 @@ namespace Yavsc.Models.Blog
|
|||
{
|
||||
public class BlogPostEditViewModel : BlogPost
|
||||
{
|
||||
public bool Publish { get; set; }
|
||||
public BlogPostEditViewModel()
|
||||
{
|
||||
}
|
||||
|
||||
public BlogPostEditViewModel(BlogPost post, bool publish)
|
||||
{
|
||||
Id = post.Id;
|
||||
AuthorId = post.AuthorId;
|
||||
ACL = post.ACL;
|
||||
Article = post.Article;
|
||||
Photo = post.Photo;
|
||||
Title = post.Title;
|
||||
Article = post.Article;
|
||||
Publish = publish;
|
||||
ACL = post.ACL;
|
||||
}
|
||||
public bool Publish { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue