示例#1
0
 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();
 }
示例#2
0
 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;
 }