Beispiel #1
0
        public async Task <ActionResult <DeploymentEntity> > Create([FromBody] CreateDeploymentRequestViewModel createDeployment)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            return(Created(string.Empty, await _deploymentService.CreateAsync(createDeployment.ToDomainModel())));
        }
 public async Task <ActionResult <DeploymentEntity> > Create([FromBody] CreateDeploymentRequestViewModel createDeployment)
 => Created(string.Empty, await _deploymentService.CreateAsync(createDeployment.ToDomainModel()));