mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
change ex type
This commit is contained in:
parent
0d317648d7
commit
e36ec8e5de
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ public UrlRepository(IRestClient apiClient, HttpClient httpClient,
|
|||
public async Task<IEnumerable<Uri>> GetAllAsync<TModel>(CancellationToken cancellationToken)
|
||||
{
|
||||
if (!EntityUrlsEndpoints.ContainsKey(typeof(TModel).Name))
|
||||
throw new InvalidEnumArgumentException(_localizer["The type of TModel is not valid."]);
|
||||
throw new ArgumentException(_localizer["The type of TModel is not valid."]);
|
||||
var request = new RestRequest($"{EntityUrlsEndpoints[typeof(TModel).Name]}/seed");
|
||||
var response = await _apiClient.ExecuteTaskAsync<IEnumerable<TModel>>(request, cancellationToken);
|
||||
if (response.ErrorException != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue