Exemple #1
0
 private UserPostMention BuildMention(TentMention src)
 {
     return new UserPostMention
     {
         UserId = src.UserId,
         PostId = src.PostId,
         VersionId = src.VersionId
     };
 }
 public ITentRequestPost FromMention(TentMention mention)
 {
     Ensure.Argument.IsNotNull(mention, nameof(mention));
     return new TentRequestPost(this.userLogic, this.userRepository, this.postRepository, this.uriHelpers)
     {
         UserId = mention.UserId,
         PostId = mention.PostId
     };
 }