refact
This commit is contained in:
parent
7be51c6ac3
commit
9b7a6c0125
11 changed files with 66 additions and 25 deletions
|
|
@ -5,8 +5,8 @@ using Yavsc.Models.Access;
|
|||
|
||||
namespace Yavsc.ViewModels.Blog
|
||||
{
|
||||
public class BlogPostInputViewModel
|
||||
{
|
||||
public class BlogPostBase
|
||||
{
|
||||
[StringLength(1024)]
|
||||
public string? Photo { get; set; }
|
||||
|
||||
|
|
@ -18,9 +18,10 @@ namespace Yavsc.ViewModels.Blog
|
|||
public string? Content { get; set; }
|
||||
|
||||
[InverseProperty("Target")]
|
||||
[Display(Name="Liste de contrôle d'accès")]
|
||||
public virtual List<CircleAuthorizationToBlogPost>? ACL { get; set; }
|
||||
[Display(Name = "Liste de contrôle d'accès")]
|
||||
public virtual List<CircleAuthorizationToBlogPost>? ACL { get; set; }
|
||||
|
||||
public bool Publish { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
|
||||
namespace Yavsc.ViewModels.Blog;
|
||||
|
||||
public class BlogPostEditViewModel : BlogPostInputViewModel
|
||||
public class BlogPostEditViewModel : BlogPostBase
|
||||
{
|
||||
|
||||
[Required]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue