Beispiel #1
0
 public IActionResult Delete(OrderDTO orderDto)
 {
     try
     {
         var order  = orderDto.MapToOrder();
         var result = order.Delete();
         return(Ok(result));
     }
     catch (Exception exception)
     {
         return(RedirectToAction("Error"));
     }
 }