public virtual T FindById(int id) { var uri = vHttpClient.CreateRequestUri(vEndpoint + "/" + id.ToString()); return(vHttpClient.GetAsync <IRootWithInstance <T> >(uri).Result.Instance); }
public async Task <UserDto> GetByIdAsync(string id) { var remoteUser = (await _client.GetAsync <IEnumerable <RemoteUserDto> >("profile/user/getByCentralId/" + id)).FirstOrDefault(); return(remoteUser != null?ConvertFromRemoteToLocalUser(remoteUser) : null); }