change ex type

This commit is contained in:
Collin M. Barrett 2019-07-11 07:52:04 -05:00
parent 0d317648d7
commit e36ec8e5de

View file

@ -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)