Fixes ACL backend support
This commit is contained in:
parent
34d7ac8947
commit
55bab0557d
14 changed files with 205 additions and 56 deletions
21
src/Yavsc.Server/Helpers/PayloadHelpers.cs
Normal file
21
src/Yavsc.Server/Helpers/PayloadHelpers.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using Yavsc.Models.Blog;
|
||||
|
||||
public static class PayloadHelpers
|
||||
{
|
||||
public static object GetPayload(this BlogPost post)
|
||||
{
|
||||
return new
|
||||
{
|
||||
post.Id,
|
||||
post.Title,
|
||||
post.Article,
|
||||
post.DateCreated,
|
||||
post.UserCreated,
|
||||
post.DateModified,
|
||||
post.UserModified,
|
||||
post.AuthorId,
|
||||
ACL = post.GetACL(),
|
||||
Tags = post.GetTags()
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue