Esempio n. 1
0
 public override ViewModel <Post> WithPosts(IPostHelper postHelper)
 {
     this.Posts = postHelper.GetRelativesPosts(Model.Category.Posts,
                                               NumberTake, CategoryId).GetAwaiter().GetResult();
     return(this);
 }
 public override ViewModel <RelativeofBeatyandhealthy> WithPosts(IPostHelper postHelper)
 {
     this.Posts = postHelper.GetRelativesPosts(this.Model.BeatyandHealthy.Posts,
                                               this.NumberTake, CategoryId).GetAwaiter().GetResult();
     return(this);
 }
Esempio n. 3
0
 public override ViewModel <BeatyandHealthy> WithPosts(IPostHelper postHelper)
 {
     this.Posts = postHelper.GetRelativesPosts(NumberTake).GetAwaiter().GetResult();
     return(this);
 }