Exemplo n.º 1
0
 public void Delete(int id,
                    [FromServices] IDeleteOrderCommand command)
 {
     _executor.ExecuteCommand(command, id);
 }
Exemplo n.º 2
0
 public ActionResult Delete(int id,
                            [FromServices] IDeleteOrderCommand command)
 {
     executor.ExecuteCommand(command, id);
     return(NoContent());
 }