public static FacultyMemberProfileOverview FromFacultyMemberProfile(FacultyMemberProfile profile)
        {
            FacultyMemberProfileOverview model = new FacultyMemberProfileOverview
            {
                FacultyName    = profile.Faculty != null ? profile.Faculty.Name : null,
                StudyFieldName = profile.StudyField != null ? profile.StudyField.Name : null
            };

            return(model);
        }
Esempio n. 2
0
 public void SetCollaboratorProfileOverviews(Project project)
 {
     foreach (var profile in project.CollaboratorProfiles)
     {
         if (profile is StudentProfile)
         {
             StudentProfileOverviews.Add(StudentProfileOverview.FromStudentProfile((StudentProfile)profile));
         }
         else if (profile is FacultyMemberProfile)
         {
             FacultyMemberProfileOverviews.Add(FacultyMemberProfileOverview.FromFacultyMemberProfile((FacultyMemberProfile)profile));
         }
     }
 }