예제 #1
0
        public static LessonPlan CreateInstance(Guid?id, bool isActive, string description)
        {
            var lessonPlan = new LessonPlan();

            lessonPlan.Id = id.HasValue ? id.Value : Guid.Empty;
            lessonPlan.AssignCreateDate(DateTime.Now);
            lessonPlan.AssignFirstRowVersion();
            lessonPlan.AssignIsActive(isActive);
            lessonPlan.AssignIsDeleted(false);
            lessonPlan.AssignDescription(description);

            return(lessonPlan);
        }
예제 #2
0
 public void AssignLessonPlan(LessonPlan lessonPlan)
 {
     this.LessonPlan = lessonPlan;
 }