Пример #1
0
 public Task <IActionResult> PutAsync(
     [FromServices] IPutCarCommand command,
     int carId,
     [FromBody] CarSm car,
     CancellationToken cancellationToken)
 {
     return(command.ExecuteAsync(carId, car, cancellationToken));
 }
Пример #2
0
 public Task <IActionResult> Put(
     [FromServices] IPutCarCommand command,
     int carId,
     [FromBody] SaveCar car,
     CancellationToken cancellationToken) => command.ExecuteAsync(carId, car);