Exemplo n.º 1
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;
        }
Exemplo n.º 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);
        }