Blog.Logic.Core.UsersLogic.GetEducations C# (CSharp) Method

GetEducations() private method

private GetEducations ( User user ) : List
user User
return 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;
        }
    }