public async Task <IList <IUserInfo> > GetUsers(RequestUserParameter parameter) { return(await GetUsers(connectorProvider.GetUserByUser, parameter).ConfigureAwait(false)); }
public async Task <IList <IUserInfo> > GetUsers(string apiUrl, RequestUserParameter parameter) { IUserInfo[] users = await httpProxy.PostAsync <UserInfo[]>(apiUrl, parameter).ConfigureAwait(false); return(new List <IUserInfo>(users ?? new UserInfo[0])); }