public EnrolledCourseEntity MapEnrolledCourseModelToEnrolledCourseEntity(EnrolledCourseModel model) { return(model == null ? null : new EnrolledCourseEntity { Id = model.Id, StudentId = model.StudentId, //Student = MapStudentEntityToStudentModel(model.Student), CourseId = model.CourseId, //Course = MapCourseEntityToCourseModel(model.Course), Assessments = MapAssessmentRatingModelListToAssessmentRatingEntityList(model.Assessments) }); }
public UpdatedEnrolledCourseMessage(EnrolledCourseModel model) { Model = model; }