Пример #1
0
        public async Task <IActionResult> UploadVehicleAsync(
            [FromHeader(Name = "x-api-key")] string apiKey,
            [FromRoute(Name = "plate")] string plate,
            [FromForm(Name = "files")] IEnumerable <IFormFile> images,
            CancellationToken cancellationToken)
        {
            await _vehicleFacade.SaveVehicleImagesAsync(plate, images, cancellationToken);

            return(Created(plate, null));
        }