FetchProject() static private méthode

static private FetchProject ( ProjectData data ) : Project
data ProjectData
Résultat Project
Exemple #1
0
        public static IProject FetchProject(int projectId)
        {
            if (projectId == 0)
            {
                return(null);
            }

            var project = Project.FetchProject(new ProjectCriteria {
                ProjectId = projectId
            });

            return(project);
        }
Exemple #2
0
        public static string FetchProjectName(int projectId)
        {
            if (projectId == 0)
            {
                return(string.Empty);
            }

            var project = Project.FetchProject(new ProjectCriteria {
                ProjectId = projectId
            });

            return(project.Name);
        }
        public static Project ProjectFetch(int projectId)
        {
            ProjectUserRepository.AuthorizeProjectUser(projectId);

            var result = Project.FetchProject(
                new ProjectDataCriteria
            {
                ProjectId = projectId
            });

            result.Auditor = new ProjectAuditor(result.Clone());

            return(result);
        }