Beispiel #1
0
        public async Task <OrderDetails> GetByIdAsync(int id)
        {
            var data = await orderDetailsRepository.GetByIdAsync(id);

            if (data == null)
            {
                Log.Information("Failed to retrieve OrderDetails, id: {id}", id);
                return(null);
            }
            Log.Information("Retrieved OrderDetails: {data}", JsonSerializer.Serialize(data));
            return(data);
        }