Esempio n. 1
0
 public Task <IActionResult> PatchAsync(
     [FromServices] IPatchCarCommand command,
     int carId,
     [FromBody] JsonPatchDocument <CarSm> patch,
     CancellationToken cancellationToken)
 {
     return(command.ExecuteAsync(carId, patch, cancellationToken));
 }
Esempio n. 2
0
 public Task <IActionResult> Patch(
     [FromServices] IPatchCarCommand command,
     int carId,
     [FromBody] JsonPatchDocument <SaveCar> patch,
     CancellationToken cancellationToken) => command.ExecuteAsync(carId, patch);