public async Task <IActionResult> DeleteFriendRequest(FriendRequestDto friendRequestDto) { if (friendRequestDto.SenderId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value) && friendRequestDto.ReceiverId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value)) { return(Unauthorized()); } return(Ok(await _friendsService.DeleteFriendRequest(friendRequestDto))); }