public void AddSkillWithMark(SkillWithMark skill) { _skillsWithMark.Add(skill); }
public IEnumerable<ProfileEntity> FindByCondition(SkillWithMark markSkill) { List<ProfileEntity> result = new List<ProfileEntity>(); var allSkills = _skillsRep.GetAllSkills(); foreach (var skill in allSkills) { if (skill.SkillTypeID.Value == _skillTypesRep.GetIDByType(markSkill.Name) && ParseCondition(markSkill.Condition)(skill.Mark, markSkill.Mark)) { result.Add(_profiles.GetProfileByProfileID(skill.ProfileID.Value).ToBLLProfile()); } } return result; }