Пример #1
0
 public PostController(PostContainer postcontainer, ReplyContainer replycontainer, ForumContainer forumcontainer, IPostUpdateContext update)
 {
     this.Container      = postcontainer;
     this.replyContainer = replycontainer;
     this.forumContainer = forumcontainer;
     this.postUpdate     = update;
 }
Пример #2
0
 public bool Update(IPostUpdateContext context)
 {
     this.postContext = context;
     context.PostUpdate(converter.ModelToDTO(this));
     return(true);
 }