Ejemplo n.º 1
0
        public ShoutboxHandler(IRepository<ShoutboxPartRecord> repository, IPostService postService)
        {
            Filters.Add(StorageFilter.For(repository));

            OnActivated<ShoutboxPart>((context, part) =>
            {
                part.Posts = postService.GetAllPostsForShoutbox(part.Id);
            });
        }