Пример #1
0
 public async Task <ActionResult <FileInfo> > AddAncillaryFileAsync(Guid releaseId,
                                                                    [FromQuery(Name = "name"), Required] string name, IFormFile file)
 {
     return(await _releaseFileService
            .UploadAncillary(releaseId, file, name)
            .HandleFailuresOrOk());
 }
Пример #2
0
 public async Task <ActionResult <FileInfo> > UploadAncillary(
     Guid releaseId,
     [FromForm] ReleaseAncillaryFileUploadViewModel upload)
 {
     return(await _releaseFileService
            .UploadAncillary(releaseId, upload)
            .HandleFailuresOrOk());
 }