public Task <ITwitterResult <ITwitterListDTO, ITwitterList> > AddMemberToList(IAddMemberToListParameters parameters) { _validator.Validate(parameters); return(ExecuteRequest(async request => { var twitterResult = await _twitterListController.AddMemberToList(parameters, request).ConfigureAwait(false); return _twitterResultFactory.Create(twitterResult, dto => _factories.CreateTwitterList(dto)); })); }
public async Task <ITwitterResult> ExecuteRequestAsync(ITwitterRequest request) { var response = await _twitterRequestHandler.ExecuteQueryAsync(request).ConfigureAwait(false); return(_twitterResultFactory.Create(request, response)); }