public async Task <IActionResult> Get() { OrderInfo[] orders = await _orderList.GetAll(); if (orders.Length == 0) { throw new EntityNotFoundException(); } return(Ok(orders)); }
public async Task <IActionResult> Get() { return(Ok(await _ordersService.GetAll())); }