Пример #1
0
        public void Init(IRegister view)
        {
            _view = view;
            _accountRepository = ObjectFactory.GetInstance<IAccountRepository>();
            _permissionRepository = ObjectFactory.GetInstance<IPermissionRepository>();
            _termRepository = ObjectFactory.GetInstance<ITermRepository>();
            _accountService = ObjectFactory.GetInstance<IAccountService>();
            _webContext = ObjectFactory.GetInstance<IWebContext>();
            _email = ObjectFactory.GetInstance<IEmail>();
            _configuration = ObjectFactory.GetInstance<IConfiguration>();

            _view.LoadTerms(_termRepository.GetCurrentTerm());
        }