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 Facultative GetFacultative(Facultative facultative) { return(_facultativeRepository.Get(facultative.Id)); }
public void AddFacultative(Facultative facultative, Teacher teacher) { _facultativeRepository.Add(facultative); _logRepository.Add(new Log(GetType().ToString(), "Add", LogStatus.info, "AddFacultative", facultative.Name)); }
public void DeleteFacultative(Facultative facultative) { _logRepository.Add(new Log(GetType().ToString(), "Delete", LogStatus.info, "DeleteFacultative", facultative.Name)); _facultativeRepository.Remove(facultative); }
public ReportBook(string name, Facultative elective) { Name = name; Elective = elective; }