Blog.Logic.Core.UsersLogic.GetEducations C# (CSharp) 메소드

GetEducations() 개인적인 메소드

private GetEducations ( User user ) : List
user User
리턴 List
        private List<Education> GetEducations(User user)
        {
            var educations = new List<Education>();
            if (user.Id <= 0) return educations;

            var db = _educationRepository.Find(a => a.UserId == user.Id, true).ToList();
            db.ForEach(a => educations.Add(EducationMapper.ToDto(a)));

            return educations;
        }
    }