BinaryStudio.TaskManager.Logic.Core.ProjectProcessor.GetUsersAndCreatorInProject C# (CSharp) Метод

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

public GetUsersAndCreatorInProject ( int projectId ) : IEnumerable
projectId int
Результат IEnumerable
        public IEnumerable<User> GetUsersAndCreatorInProject(int projectId)
        {
            var users = this.projectRepository.GetAllUsersInProject(projectId);
            List<User> returnValue = new List<User>();
            returnValue.Add(this.GetCreator(projectId));
            if (users == null)
            {
                return returnValue;
            }
            else
            {
                returnValue.AddRange(users);
            }
            return returnValue;
        }