Example #1
0
 public void AddUnapprovedFriend(User fromUser, User toUser)
 {
     if (fromUser.UserID != toUser.UserID)
     {
         _friendRepository.AddUnapprovedFriend(fromUser.UserID, toUser.UserID);
     }
 }
Example #2
0
 public async Task AddUnapprovedFriend(User fromUser, User toUser)
 {
     if (fromUser.UserID != toUser.UserID)
     {
         await _friendRepository.AddUnapprovedFriend(fromUser.UserID, toUser.UserID);
     }
 }