public async Task <List <TDestination> > GetAsync <TSource, TDestination>(bool include = false) where TSource : class where TDestination : class { try { GetProperties <TSource>(); string uri = FormatUriWithoutIds <TSource>(); token = await _jwt.CheckTokenAsync(token); return(await _http.GetListAsync <TDestination>($"{uri}?include={include.ToString()}", "AdminClient", token.Token)); } catch { throw; } }
public async Task <List <TDestination> > GetAsync <TSource, TDestination>(bool include = false) where TSource : class where TDestination : class { try { GetProperties <TSource>(); string uri = FormatUriWithoutIds <TSource>(); _token = await _jwtTokenService.CheckTokenAsync(_token); return(await _http.GetListAsync <TDestination>($"{uri}?include={include.ToString()}", AppConstants.HttpClientName, _token?.Token)); } catch (Exception ex) { throw ex; } }