public UserProfileController() { _profileManager = new ProfileManager(); _friendRequestManager = new FriendRequestManager(); _friendProfileManager = new FriendProfileManager(); _profilePostManager = new ProfilePostManager(); }
public ProfileController() { _profileManager = new ProfileManager(); _hobbieManager = new HobbieManager(); _friendRequestManager = new FriendRequestManager(); _friendProfileManager = new FriendProfileManager(); _visitorProfileManager = new VisitorProfileManager(); _profilePostManager = new ProfilePostManager(); }
public void AcceptFriend(int friendRequestId) { var friendRequestManager = new FriendRequestManager(); var friendProfileManager = new FriendProfileManager(); var friendRequest = friendRequestManager.AcceptFriendRequest(friendRequestId); friendProfileManager.Add(new FriendRelationshiop() { UserProfileId = friendRequest.UserProfileId, FriendUserProfileId = friendRequest.FriendUserProfileId }); friendProfileManager.Add(new FriendRelationshiop() { UserProfileId = friendRequest.FriendUserProfileId, FriendUserProfileId = friendRequest.UserProfileId, }); }
public void AcceptFriend(long friendRequestId) { var friendRequestManager = new FriendRequestManager(); var friendProfileManager = new FriendProfileManager(); var friendRequest = friendRequestManager.AcceptFriendRequest(friendRequestId); friendProfileManager.Add(new FriendProfile() { ProfileId = friendRequest.ProfileId, FriendProfileId = friendRequest.FriendRequestProfileId, IsFavourite = false }); friendProfileManager.Add(new FriendProfile() { ProfileId = friendRequest.FriendRequestProfileId, FriendProfileId = friendRequest.ProfileId, IsFavourite = false }); }
public UserFriendController() { _profileManager = new ProfileManager(); _friendProfileManager = new FriendProfileManager(); }