public HouseService(IRepository <House> repository, BlogPostService checkinService, EntityService <OldHouseUserProfile> profileSerice, UserManager <OldHouseUser> userManger) : base(repository) { CheckInService = checkinService; CheckInService.RegisterField <CheckIn>(new List <string>()); ProfileService = profileSerice; //remember to register user private filds here MyUserManager = userManger; registerHouse(); }
public HouseService(IRepository <House> repository, BlogPostService checkinService, EntityService <OldHouseUserProfile> profileSerice, LikeRateFavService lrfService, UserManager <OldHouseUser> userManger, MessageService feedService) : base(repository) { CheckInService = checkinService; CheckInService.RegisterField <CheckIn>(new List <string>()); ProfileService = profileSerice; //remember to register user private filds here MyUserManager = userManger; LrfService = lrfService; //use the profile repository FollowService = new FollowService <OldHouseUserProfile>(ProfileService.EntityRepository); FeedService = feedService; registerHouse(); registerUserProfile(); instence = this; }