public Enrollment()

in apps/samplecode/education/rosterapi/EducationAccelerator.WebApi/EducationAccelerator.WebApi/Models/Enrollment.cs [73:98]


        public Enrollment(CrmEnrollment crmEnrollment)
        {
            Id = crmEnrollment.Id;
            CreatedAt = crmEnrollment.CreatedOn;
            UpdatedAt = crmEnrollment.msk12_lastmodifieddate;
            Status = crmEnrollment.msk12_status;
            Role = crmEnrollment.msk12_role;
            BeginDate = crmEnrollment.msk12_begindate;
            EndDate = crmEnrollment.msk12_enddate;
            Primary = crmEnrollment.msk12_primaryteacher;

            if (crmEnrollment._msk12_contact_value != null)
            {
                User = new User() { Id = crmEnrollment._msk12_contact_value };
            }

            if (crmEnrollment._msk12_account_value != null)
            {
                School = new Org() { Id = crmEnrollment._msk12_account_value };
            }

            if (crmEnrollment._msk12_classid_value != null)
            {
                IMSClass = new IMSClass() { Id = crmEnrollment._msk12_classid_value };
            }
    }