public async Task <ActionResult <Orders> > DeleteOrder(int id) { var order = await _repo.SelectById(id); if (order == null) { return(NotFound()); } await _repo.Remove(order); return(order); }
public async Task <ActionResult <Orders> > DeleteOrder(int id) { var order = await _repo.SelectById(id); if (order == null) { return(NotFound()); } await _repo.Remove(order); return(order); }