public List <SkillsModel> GetAllSkills() { List <SkillsModel> skillModel = new List <SkillsModel>(); SkillsDAO skillDAO = new SkillsDAO(); skillModel = skillDAO.GetAllSkills().Select(x => new SkillsModel { SkillId = x.Skill_ID, SkillName = x.Skill_Name }).ToList(); return(skillModel); }
public List <AssociateSkillsModel> GetAllAssociateSkills() { List <AssociateSkillsModel> associateSkillsModel = new List <AssociateSkillsModel>(); SkillsDAO skillsDAO = new SkillsDAO(); //associateModelList = return(skillsDAO.GetAllSkills() .Select(x => new AssociateSkillsModel { SkillId = x.Skill_ID, SkillName = x.Skill_Name, }).ToList()); }