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); }
public string GetStr(CandidatePrimarySkill skill) { if (skill == null) { return(null); } var result = skill.TechSkill.ToString() + " " + skill.Level.ToString(); return(result); }
private void MappingPrimarySkill(CandidatePrimarySkill skill) { if (skill == null) { return; } var techSkill = new TechSkill { Id = skill.TechSkill }; unitOfWork.AttachToContext(techSkill); skill.TechSkill1 = techSkill; }