Exemple #1
0
        public async Task <IActionResult> GetAsync(string customerId)
        {
            var orders = await salesProvider.GetAsync(customerId);

            if (orders != null && orders.Any())
            {
                return(Ok(orders));
            }
            return(NotFound());
        }
Exemple #2
0
        public async Task <IActionResult> GetAsync(string CustomerId)
        {
            var result = await salesProvider.GetAsync(CustomerId);

            if (result != null && result.Any())
            {
                return(Ok(result));
            }

            return(NotFound());
        }