public async Task <IActionResult> GetOrder(int id) { var result = await orderProvider.GetOrderByCustomerAsync(id); if (result.isSuccess) { return(Ok(result.orders)); } return(NotFound()); }