public static Section ToSection(this SectionObject sectionObject) { return(new Section(sectionObject.Id, sectionObject.GroupId, sectionObject.Subject) { Enabled = sectionObject.Enabled }); }
public static SectionObject UpdateAccordingWith(this SectionObject sectionObject, Section section) { sectionObject.Subject = section.Subject; sectionObject.Enabled = section.Enabled; return(sectionObject); }