/// <summary> /// Gets a set of payslips dictating who should be paid how much for teaching this event /// </summary> /// <returns></returns> public override IEnumerable <TeacherEventPaySlip> GetPaySlips() { return(Teachers.Select(x => new TeacherEventPaySlip(x, TeacherRate))); }
/// <summary> /// Gets a set of payslips dictating who should be paid how much for teaching this event /// </summary> /// <returns></returns> public override IEnumerable <TeacherEventPaySlip> GetPaySlips() { var multipleTeachers = Teachers.Count > 1; return(Teachers.Select(x => new TeacherEventPaySlip(x, GetRate(multipleTeachers, x)))); }