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;
        }
示例#2
0
        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);
        }