public ApplicationDetails(ApplicationDetails applicationDetails) { ApplicationId = applicationDetails.ApplicationId; ApplicationName = applicationDetails.ApplicationName; CategoryName = applicationDetails.CategoryName; CourseTopicId = applicationDetails.CourseTopicId; CourseTopic = applicationDetails.CourseTopic; PLAssess = applicationDetails.PLAssess; DiagAssess = applicationDetails.DiagAssess; CreatedDate = applicationDetails.CreatedDate; }
public ApplicationWithSections( ApplicationDetails applicationDetails, IEnumerable <Section> sections, double popularityRating ) : base(applicationDetails) { Sections = sections; TotalMins = Sections.Sum( section => section.Tutorials.Sum( tutorial => (tutorial.OverrideTutorialMins > 0 ? tutorial.OverrideTutorialMins : tutorial.AverageTutMins) ?? 0 ) ); PopularityRating = popularityRating; }