private async Task <ResponseInfo> ReadAndSave(HttpResponseMessage response) { using var responseStream = await response.Content.ReadAsStreamAsync(); var responseData = await JsonSerializer.DeserializeAsync <ApiResponse <Character> >(responseStream, _jsonOptions); await _characterService.AddRangeAsync(responseData.Results); var cnt = await _characterService.CountAsync(); return(responseData.Info); }