BinaryStudio.TaskManager.Logic.Core.ProjectRepository.GetAllProjectsForUser C# (CSharp) Метод

GetAllProjectsForUser() публичный Метод

The get all projects for user.
public GetAllProjectsForUser ( int userId ) : IEnumerable
userId int /// The user id. ///
Результат IEnumerable
        public IEnumerable<Project> GetAllProjectsForUser(int userId)
        {
            return this.dataBaseContext.Users.First(x => x.Id == userId).UserProjects;
        }