refacto BlogPost serialization
This commit is contained in:
parent
ff7a6ac16d
commit
64547840e4
8 changed files with 22 additions and 17 deletions
|
|
@ -35,7 +35,7 @@ namespace Yavsc.Models.Blog
|
|||
public string? AuthorId { get; set; }
|
||||
|
||||
[Display(Name = "Auteur")]
|
||||
public virtual ApplicationUser? Author { set; get; }
|
||||
public virtual ApplicationUser Author { set; get; }
|
||||
|
||||
|
||||
[Display(Name = "Date de création")]
|
||||
|
|
@ -95,6 +95,6 @@ namespace Yavsc.Models.Blog
|
|||
[InverseProperty("Post")]
|
||||
public virtual List<Comment> Comments { get; set; }
|
||||
|
||||
IApplicationUser IBlogPost.Author { get => this.Author; }
|
||||
IApplicationUser IBlogPost.Author => Author;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue