示例#1
0
        public async Task <ActionResult <IEnumerable <DeploymentDto> > > GetDeployments([FromRoute] string productName)
        {
            var deployments = await _deploymentService.GetDeploymentsByProduct(productName);

            return(Ok(deployments.Select(d => new DeploymentDto
            {
                DeployedOn = d.DeployedOn,
                Version = d.Release.Version
            }).ToList()));
        }