public ShoutboxHandler(IRepository<ShoutboxPartRecord> repository, IPostService postService) { Filters.Add(StorageFilter.For(repository)); OnActivated<ShoutboxPart>((context, part) => { part.Posts = postService.GetAllPostsForShoutbox(part.Id); }); }
public ShoutboxHandler(IRepository<ShoutboxPartRecord> repository, IPostService postService) { Filters.Add(StorageFilter.For(repository)); OnActivated<ShoutboxPart>((context, part) => { part.Posts = postService.GetAllPostsForShoutbox(part.Id); }); }