예제 #1
0
 public static Section ToSection(this SectionObject sectionObject)
 {
     return(new Section(sectionObject.Id, sectionObject.GroupId, sectionObject.Subject)
     {
         Enabled = sectionObject.Enabled
     });
 }
예제 #2
0
 public static SectionObject UpdateAccordingWith(this SectionObject sectionObject, Section section)
 {
     sectionObject.Subject = section.Subject;
     sectionObject.Enabled = section.Enabled;
     return(sectionObject);
 }