public async Task <IActionResult> AddFriend(Guid userId, Guid friendId) { var added = await friendsService.AddFriendAsync(userId, friendId); if (added) { return(Ok()); } return(BadRequest()); }
public void AddFriend(AddRemoveFriendModel model) { _friendsService.AddFriendAsync(model.UserId, model.FriendId); }