public async Task <IActionResult> Delete(int id) { if (await _orderList.Delete(id)) { return(Ok()); } throw new EntityNotFoundException(); }
public async Task <IActionResult> DeleteAsync(int id) { await _ordersService.Delete(id); return(Ok()); }