bug fixes
This commit is contained in:
parent
9aa7b3c77d
commit
852020f98f
28 changed files with 261 additions and 234 deletions
26
src/Yavsc.Server/ViewModels/BlogPostInputViewModel.cs
Normal file
26
src/Yavsc.Server/ViewModels/BlogPostInputViewModel.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Access;
|
||||
|
||||
namespace Yavsc.ViewModels.Blog
|
||||
{
|
||||
public class BlogPostInputViewModel
|
||||
{
|
||||
[StringLength(1024)]
|
||||
public string? Photo { get; set; }
|
||||
|
||||
[StringLength(1024)]
|
||||
public required string Title { get; set; }
|
||||
|
||||
[StringLength(56224)]
|
||||
public required string Content { get; set; }
|
||||
|
||||
public bool Visible { get; set; }
|
||||
|
||||
[InverseProperty("Target")]
|
||||
[Display(Name="Liste de contrôle d'accès")]
|
||||
public virtual List<CircleAuthorizationToBlogPost>? ACL { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,8 @@ namespace Yavsc.ViewModels.Relationship
|
|||
public CirclesViewModel(ICircleAuthorized resource)
|
||||
{
|
||||
Target = resource;
|
||||
TargetTypeName = resource.GetType().Name;
|
||||
if (resource!=null)
|
||||
TargetTypeName = resource.GetType().Name;
|
||||
}
|
||||
public ICircleAuthorized Target { get; set; }
|
||||
public string TargetTypeName { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue