refacto BlogPost serialization
Some checks failed
Dotnet build and test / log-the-inputs (push) Has been cancelled
Dotnet build and test / build (push) Has been cancelled

This commit is contained in:
Paul Schneider 2026-08-05 21:05:14 +01:00
commit 64547840e4
No known key found for this signature in database
GPG key ID: 1E66C65EE2B46F1B
8 changed files with 22 additions and 17 deletions

View file

@ -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;
}
}