コード例 #1
0
        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);
        }
コード例 #2
0
        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());
        }