예제 #1
0
        public async Task <IActionResult> GetOrdersByCustomer(int customerId)
        {
            var result = await _orderProvider.GetAllOrderByCusomerId(customerId);

            if (result.IsSucess)
            {
                return(Ok(result.orders));
            }
            return(NotFound());
        }