public async Task <bool> UpdateAsync <TSource, TDestination>(TSource item) where TSource : class where TDestination : class { try { GetProperties(item); string uri = FormatUriWithIds <TDestination>(); token = await _jwt.CheckTokenAsync(token); var response = await _http.PutAsync <TSource, TSource>(item, uri, "AdminClient", token.Token); return(true); } catch { return(false); } }
public async Task <bool> UpdateAsync <TSource, TDestination>(TSource item) where TSource : class where TDestination : class { try { GetProperties(item); string uri = FormatUriWithIds <TDestination>(); _token = await _jwtTokenService.CheckTokenAsync(_token); var response = await _http.PutAsync <TSource, TSource>(item, uri, AppConstants.HttpClientName, _token.Token); return(true); } catch (Exception ex) { return(false); } }