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

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

The get all users in project.
public GetAllUsersInProject ( int projectId ) : IEnumerable
projectId int /// The project id. ///
Результат IEnumerable
        public IEnumerable<User> GetAllUsersInProject(int projectId)
        {
            var project = this.dataBaseContext.Projects.SingleOrDefault(x => x.Id == projectId);
            if (null == project)
            {
                return new List<User>();
            }
            ICollection<User> users = project.ProjectUsers;
            return users;
        }