Пример #1
0
        public bool IsEqual(CandidatePrimarySkill lhs, CandidatePrimarySkill rhs)
        {
            if (lhs == null)
            {
                if (rhs == null)
                {
                    return(true);
                }

                return(false);
            }
            else
            {
                if (rhs == null)
                {
                    return(false);
                }
            }

            if (lhs.TechSkill != rhs.TechSkill)
            {
                return(false);
            }

            if (lhs.Level != rhs.Level)
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
        public string GetStr(CandidatePrimarySkill skill)
        {
            if (skill == null)
            {
                return(null);
            }

            var result = skill.TechSkill.ToString() + " " + skill.Level.ToString();

            return(result);
        }
Пример #3
0
        private void MappingPrimarySkill(CandidatePrimarySkill skill)
        {
            if (skill == null)
            {
                return;
            }

            var techSkill = new TechSkill {
                Id = skill.TechSkill
            };

            unitOfWork.AttachToContext(techSkill);

            skill.TechSkill1 = techSkill;
        }