コード例 #1
0
        private async Task GetEntity(int entityId)
        {
            var response = await Execute(() => Client.GetAsync($"{RequestUri}\\{entityId}"));

            if (!response.IsSuccessStatusCode &&
                response.StatusCode == HttpStatusCode.NotFound)
            {
                result.AddAlert($"Not found {typeof(TEntity).GetDisplay()} with Id {entityId} ");
            }
        }