Exemple #1
0
        public FollowerCellViewModel()
        {
            var dbContext = new DbContext();

            followerWrites = new FollowerWrites(dbContext);
            followerReads  = new FollowerReads(dbContext);
        }
        public FollowersViewModel(string userId)
        {
            UserId = userId;

            var dbContext = new DbContext();

            followerReads = new FollowerReads(dbContext);

            Users = followerReads.GetNonRelated(UserId);
        }
Exemple #3
0
        public ProfileViewModel(string userId)
        {
            var dbContext = new DbContext();

            userWrites = new UserWrites(dbContext);
            userReads  = new UserReads(dbContext);

            followerReads = new FollowerReads(dbContext);

            postReads = new PostReads(dbContext);

            UserId = userId;

            SetValues();
        }