Skip to content

Instantly share code, notes, and snippets.

@nest-don
Last active June 18, 2019 10:02
Show Gist options
  • Save nest-don/191852d485a62959646b5ae3e04b5f24 to your computer and use it in GitHub Desktop.
Save nest-don/191852d485a62959646b5ae3e04b5f24 to your computer and use it in GitHub Desktop.
public async Task<ResultMultiple<Share>> QuerySharesAsync(
bool doCache = true, bool throwIfError = true)
{
Share shareSeed = new Share();
shareSeed.OwnedBy = _selectedIndustry;
ResultMultiple<Share> result = await ResultMultipleUI<Share>.WaitForObjectAsync(
backend, throwIfError, shareSeed, doCache);
if (result.Code >= 0)
{
Shares = result.Data.Payload;
SelectedShare = _shares.FirstOrDefault();
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment