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