예제 #1
0
 public void ApplyTo(ProfessionalPartnerships.Data.Models.Enrollments enrollment)
 {
     enrollment.ProgramId          = this.ProgramId;
     enrollment.StudentId          = this.StudentId;
     enrollment.EnrollmentStatusId = this.EnrollmentStatusId;
     enrollment.Note = this.Notes;
 }
예제 #2
0
        public EnrollmentsViewModel(ProfessionalPartnerships.Data.Models.Enrollments enrollment)
        {
            this.EnrollmentId       = enrollment.EnrollmentId;
            this.EnrollmentStatusId = enrollment.EnrollmentStatusId;
            this.StudentId          = enrollment.StudentId;
            this.ProgramId          = enrollment.ProgramId;
            this.Notes = enrollment.Note;

            this.EnrollmentStatusName = enrollment.EnrollmentStatus?.Name;
            this.ProgramName          = $"{enrollment.Program?.PointOfContactProfessional?.Company?.Name} - {enrollment.Program?.ProgramType?.Name} ({enrollment.Program?.StartDate} - {enrollment.Program?.EndDate})";
            this.StudentName          = $"{enrollment.Student?.FirstName} {enrollment.Student?.LastName}";
            this.PointOfContactName   = $"{enrollment.Program?.PointOfContactProfessional?.FirstName} {enrollment.Program?.PointOfContactProfessional?.LastName}";
            this.Semester             = enrollment.Program?.Semester?.Name;
        }