public AccountController( UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IRepositoryFactory factory, IDataManager dataManager, AppDbContext appDbContext, LePadContext lePadContext, IOptions <IdentityCookieOptions> identityCookieOptions, IEmailSender emailSender, IUploader uploader, ISmsSender smsSender, ILoggerFactory loggerFactory, IDistributedCache cache) { _userManager = userManager; _signInManager = signInManager; _repos = factory; _dataManager = dataManager; _appDbContext = appDbContext; _lepadContext = lePadContext; _externalCookieScheme = identityCookieOptions.Value.ExternalCookieAuthenticationScheme; _emailSender = emailSender; _uploader = uploader; _smsSender = smsSender; _logger = loggerFactory.CreateLogger <AccountController>(); _cache = cache; }
public RepositoryFactory(LePadContext context) { _context = context; _answers = new Repository <Answer>(_context); _comments = new Repository <Comment>(_context); _contents = new Repository <Content>(_context); _courses = new Repository <Course>(_context); _exams = new Repository <Exam>(_context); _likes = new Repository <Like>(_context); _locations = new Repository <Location>(_context); _profiles = new Repository <Profile>(_context); _questions = new Repository <Question>(_context); _schools = new Repository <School>(_context); _scores = new Repository <Score>(_context); _units = new Repository <Unit>(_context); _students = new Repository <Student>(_context); _studentUnits = new Repository <StudentUnit>(_context); _lecturers = new Repository <Lecturer>(_context); _admins = new Repository <Admin>(_context); _classes = new Repository <Class>(_context); _notifications = new Repository <Notification>(_context); _boards = new Repository <DiscussionBoard>(_context); _posts = new Repository <Post>(_context); _progress = new Repository <CourseworkProgress>(_context); _studentCourses = new Repository <StudentCourse>(_context); _examSessions = new Repository <ExamSession>(_context); _feeStructures = new Repository <FeeStructure>(_context); _feePayments = new Repository <FeePayment>(_context); _baseFeeStructures = new Repository <BaseFeeStructure>(_context); }