Beispiel #1
0
        public async Task <HttpOperationResult <BuildDto> > GetLastAsync([FromRoute] Guid buildConfigId)
        {
            logger.LogInformation($"Start execution method '{nameof(GetLastAsync)}'");

            var build = await buildService.GetLastBuildAsync(buildConfigId);

            return(HttpOperationResult <BuildDto> .Ok(ModelsMapper.ConvertBuildServiceModelToDto(build)));
        }
        public async Task <HttpOperationResult <BuildDto> > RunAsync([FromRoute] Guid id)
        {
            logger.LogInformation($"Start execution method '{nameof(RunAsync)}'");
            logger.LogInformation($"BuildConfigId='{id}'");

            var build = await buildConfigService.RunAsync(id, CurrentUser.Id);

            var dtoModel = ModelsMapper.ConvertBuildServiceModelToDto(build);

            return(HttpOperationResult <BuildDto> .Ok(dtoModel));
        }