public IActionResult AcceptFriendRequest(int requestedById, int requestedToId) { try { _friendService.Accept(requestedById, requestedToId); return(Ok()); } catch (Exception ex) { return(BadRequest(new { message = ex.Message })); } }
public async Task AcceptFriend(string senderId, string recipientId) { await _friendService.Accept(senderId, recipientId); }