public TeacherController( IBusinessLayer businessLayer, ILogger <TeacherController> logger, UrlEncoder urlEncoder, IAuthentication auth) { _businessLogic = businessLayer; _auth = auth; _teacherServices = _businessLogic.GetTeacherOperationService(); _logger = logger; _urlEncoder = urlEncoder; }
public AccountController( ILogger <AccountController> logger, IBusinessLayer businessLayer, IAuthentication auth ) { _businessLogic = businessLayer; _auth = auth; _logger = logger; _studentServices = _businessLogic.GetStudentOperationService(); _teacherServices = _businessLogic.GetTeacherOperationService(); }
public BusinessLogic(IPersistenceContext persistenceContext) { _studentServices = new StudentServices(persistenceContext); _teacherServices = new TeacherServices(persistenceContext); }