public DeploymentStepResource AddOrUpdateStep(string name)
{
var existing = FindStep(name);
DeploymentStepResource step;
if (existing == null)
{
step = new DeploymentStepResource
{
Name = name
};
Steps.Add(step);
}
else
{
existing.Name = name;
step = existing;
}
// Return the step so you can add actions
return step;
}