// Delete a specific ordered food detail with Id = id public async Task <IActionResult> DeleteOrderDetail(int id) { var detail = await _order.GetOrderDetailById(id); var table = await _table.GetTableById(detail.DiningTableId); await _order.DeleteOrderDetail(id); return(RedirectToAction("OrderDetailsByTableNumber", new { table.TableNumber })); }