public HomeworkService(IRepository <Homework> homeworkRepository,
                        IStudentHomeworkUpdater studentHomeworkUpdater, IMapperBLL mapper, ILoggerFactory factory = null)
 {
     _homeworkRepository     = homeworkRepository;
     _studentHomeworkUpdater = studentHomeworkUpdater;
     _logger = factory?.CreateLogger("Homework Service");
     _mapper = mapper.CreateMapper();
 }
 public ProfessorService(IRepository <Professor> repository, IMapperBLL mapper, ILoggerFactory factory = null)
 {
     _professorRepository = repository;
     _logger = factory?.CreateLogger("Professor Service");
     _mapper = mapper.CreateMapper();
 }
Esempio n. 3
0
 public StudentService(IRepository <Student> repository, IMapperBLL mapper, ILoggerFactory factory = null)
 {
     _studentRepository = repository;
     _logger            = factory?.CreateLogger("Student Service");
     _mapper            = mapper.CreateMapper();
 }
 public LectureService(IRepository <Lecture> repository, IMapperBLL mapper, ILoggerFactory factory = null)
 {
     _lectureRepository = repository;
     _logger            = factory?.CreateLogger("Lecture Service");
     _mapper            = mapper.CreateMapper();
 }