Exemplo n.º 1
0
        public async Task <ActionResult <ReleaseViewModel> > CreateReleaseAsync(CreateReleaseViewModel release,
                                                                                Guid publicationId)
        {
            release.PublicationId = publicationId;

            return(await _releaseService
                   .CreateReleaseAsync(release)
                   .HandleFailuresOrOk());
        }
Exemplo n.º 2
0
 public async Task CreateReleaseAsync(ReleaseConfigurationDto dto)
 {
     var model = _adapterResolver.ResolveByAdapteeTypes <ReleaseConfigurationDto, ReleaseConfiguration>().Adapt(dto);
     await _releaseService.CreateReleaseAsync(model);
 }