예제 #1
0
        private IEnumerable <SkillViewModel> GetSkillList(string userId)
        {
            var skills = _skillService.GetAllSkillByUserId(userId);

            if (skills == null)
            {
                return(null);
            }


            var result = skills.Select(skill => new SkillViewModel()
            {
                Id         = skill.Id,
                Title      = skill.Title,
                Summary    = skill.Summary,
                CreateDate = skill.CreateDate
            }).ToList();

            return(result);
        }