public Course(CourseCategory source) { this.ID = source.ID; this.ImageID = source.Image.WithStruct(x => x.FileID, Guid.Empty); this.Title = source.Name; this.Description = source.Description; }
public Lesson(CourseCategory source) { this.ID = source.ID; this.CourseID = (int)source.ParentID; this.ImageID = source.Image.WithStruct(x => x.FileID, Guid.Empty); this.Title = source.Name; this.Description = source.Description; }