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