private async Task <BrickLinkResponse <ItemsData[]> > ExecuteItemSubsetsRequest(string number, ItemType type) { var request = new RestRequest($"items/{type.GetEnumMemberValue()}/{number}/subsets"); var response = await client.ExecuteAsync(request); if (!response.IsSuccessful) { throw new Exception("Something wrong with BrickLink Item Subsets request"); } return(JsonConvert.DeserializeObject <BrickLinkResponse <ItemsData[]> >(response.Content)); }