public IActionResult Delete([FromBody] OrderDetailDeleteModel model) { if (ModelState.IsValid) { _orderDetailOperations.Delete(model); } else { return(BadRequest()); } return(Ok()); }
public IActionResult Rempve([FromRoute] int id) { _orderDetail.Delete(id); return(Ok()); }