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