Example #1
0
 public ServiceBuilder(IMedicinHelper medicinHelper, IPostHelper postHelper, IRelativeCategoryHelper relativeCategoryHelper
                       , IDiseaseHelper diseaseHelper, IDoctorHelper doctorHelper, ICategoryHelper categoryHelper)
 {
     _doctorHelper           = doctorHelper;
     _diseaseHelper          = diseaseHelper;
     _postHelper             = postHelper;
     _relativeCategoryHelper = relativeCategoryHelper;
     _medicinHelper          = medicinHelper;
     _categoryHelper         = categoryHelper;
 }
 public override ViewModel <RelativeofBeatyandhealthy> WithPosts(IPostHelper postHelper)
 {
     this.Posts = postHelper.GetRelativesPosts(this.Model.BeatyandHealthy.Posts,
                                               this.NumberTake, CategoryId).GetAwaiter().GetResult();
     return(this);
 }
Example #3
0
 public override ViewModel <Post> WithPosts(IPostHelper postHelper)
 {
     this.Posts = postHelper.GetRelativesPosts(Model.Category.Posts,
                                               NumberTake, CategoryId).GetAwaiter().GetResult();
     return(this);
 }
Example #4
0
 public RSVPController(IPostHelper postHelper, IGetHelper getHelper)
 {
     _postHelper = postHelper;
     _getHelper  = getHelper;
 }
Example #5
0
 public RSVPController(IPostHelper postHelper, IGetHelper getHelper)
 {
     _postHelper = postHelper;
     _getHelper = getHelper;
 }
Example #6
0
 public override ViewModel <BeatyandHealthy> WithPosts(IPostHelper postHelper)
 {
     this.Posts = postHelper.GetRelativesPosts(NumberTake).GetAwaiter().GetResult();
     return(this);
 }
Example #7
0
 public abstract ViewModel <T> WithPosts(IPostHelper postHelper);