/// <summary> /// Reads single brand. /// </summary> /// <param name="name"></param> /// <returns></returns> public async Task <(BrandInfo Data, DataStatus Status)> DataReadBrandAsync(string name) { var(brand, status) = await ReadBrandAsync(name); if (status.IsGood) { Data.UpdateBrands(brand); } else { _logger?.LogError($"Error code {status.Code} in reading brand: {status.Explanation}."); } Data.Status = status; return(brand, Data.Status); }