public async Task <IActionResult> GetCustomerOrderAsync(int CustomerId) { var result = await orderProvider.GetCustomerOrderAsync(CustomerId); if (result.Success) { return(Ok(result.Orders)); } return(NotFound()); }