refacto BlogPost
This commit is contained in:
parent
84f3ffa9c2
commit
e35bc273a3
17 changed files with 177 additions and 203 deletions
|
|
@ -1,7 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using Yavsc.Abstract.Identity;
|
||||
using Yavsc.Abstract.Identity.Security;
|
||||
using Yavsc.Models.Access;
|
||||
using Yavsc.Models.Relationship;
|
||||
|
|
@ -69,7 +68,7 @@ namespace Yavsc.Models.Blog
|
|||
|
||||
public ICircleAuthorization[] GetACL()
|
||||
{
|
||||
return ACL.ToArray();
|
||||
return ACL?.ToArray() ?? Array.Empty<ICircleAuthorization>();
|
||||
}
|
||||
|
||||
public void Tag(Tag tag)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue