public async Task <IActionResult> Get(int id) { var order = await _orderList.Get(id); if (order == null) { throw new NotSupportedException(); } return(Ok(order)); }
public async Task <IActionResult> GetAsync(int id) { return(Ok(await _ordersService.Get(id))); }