public List <ListFriendRequest> ListRequest()
        {
            try
            {
                var result = new List <ListFriendRequest>();

                var listRequest = _friendRequestRepository
                                  .GetInclude(includes: sources => sources.Include(x => x.StatusNavigation)).ToList();

                listRequest.ForEach(item =>
                {
                    var tmp = new ListFriendRequest
                    {
                        IdRequest    = item.Id,
                        UserSender   = _userApiService.Detail(item.UserSender),
                        UserReciever = _userApiService.Detail(item.UserReciever),
                        Status       = item.StatusNavigation.Name,
                    };

                    result.Add(tmp);
                });


                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 /// <summary>
 /// Get the friends of a service identity, one page at a time.
 /// </summary>
 /// <returns> ListFriendResponse object</returns>
 /// <param name="request"> ListFriendRequest object</param>
 /// <param name='jsonRpcCallId'>
 /// The json rpc call identifier. This is a string generated by the client, which can be used to correlate the response to the request. Max length is 256 characters. A JSON-RPC id must be generated on a per call invocation basis. The Rogerthat platform uses the id of the call to store the call result for a certain amount of time so that if something fails during the communication, the same call (having the same JSON-RPC id) can be resent to the Rogerthat service, allowing to fetch the result, without actually executing the call again. This avoids annoying problems such as duplicate delivery of messages.
 /// 
 /// You should use a different JSON-RPC id for every call you make.
 /// 
 /// In case of an intermittent failure such as a network connectivity problem, you can retry the same call using the same JSON-RPC id, without running the risk of duplicate execution of your call (e.g. duplicate message delivery).
 /// </param>
 public ListFriendResponse ListFriends(ListFriendRequest request, string jsonRpcCallId)
 {
     ListFriendResponse result = new ListFriendResponse();
     WireRequest(0, jsonRpcCallId, "friend.list", (writer) =>
         {
             request.Write(writer, false);
         }, (reader) =>
         {
             result.Read(reader);
         }
     );
     return result;
 }
 /// <summary>
 /// Get the friends of a service identity, one page at a time.
 /// </summary>
 /// <returns> ListFriendResponse object</returns>
 /// <param name="request"> ListFriendRequest object</param>
 public ListFriendResponse ListFriends(ListFriendRequest request)
 {
     return ListFriends(request, Guid.NewGuid().ToString());
 }