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