public PhaseResource AddOrUpdatePhase(string name) { var phase = FindPhase(name); if (phase == null) { phase = new PhaseResource { Name = name, }; Phases.Add(phase); } else { phase.Name = name; } return phase; }
public PhaseResource AddOrUpdatePhase(string name) { var phase = FindPhase(name); if (phase == null) { phase = new PhaseResource { Name = name, }; Phases.Add(phase); } else { phase.Name = name; } return(phase); }