Beispiel #1
0
        public async Task <HttpOperationResult <BuildStepDto> > CreateAsync([FromBody] CreateBuildStepRequestDto createBuildStepRequestDto)
        {
            logger.LogInformation($"Start execution method '{nameof(CreateAsync)}'");
            logger.LogInformation($"CreateProjectRequestDto: '{createBuildStepRequestDto}'");

            var buildStep =
                await buildStepService.CreateAsync(createBuildStepRequestDto.ToServiceModel());

            var dtoModel = ModelsMapper.CovertBuildStepServiceModelToDto(buildStep);

            return(HttpOperationResult <BuildStepDto> .Created(dtoModel));
        }