public ReportBook CreateReportBook(string name, Facultative facultative) { if (facultative.Log != null) { return(facultative.Log); } _logRepository.Add(new Log(GetType().ToString(), "Add", LogStatus.info, "CreateReportBook", facultative.Name)); ReportBook reportBook = new ReportBook(name, facultative); _reportBookRepository.Add(reportBook); facultative.Log = reportBook; ChangeStateEntity(facultative); return(reportBook); }
public void AddReport(ReportBook reportBook, Report report) { _logRepository.Add(new Log(GetType().ToString(), "Add", LogStatus.info, "AddReport", report.Listener.FullName + " " + report.Mark)); reportBook.Reports.Add(report); }