Пример #1
0
        public ManuscriptController()
        {
            //empty constructor
            string conString = "data source=192.168.84.149;initial catalog=dbTransferDeskService;user id=sa;password=admin@123;MultipleActiveResultSets=True;App=EntityFramework";

            _manuscriptService = new ManuscriptService(conString, conString);
            _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);
        }
Пример #2
0
        public AdminController()
        {
            var conString = string.Empty;

            conString          = Convert.ToString(ConfigurationManager.AppSettings["dbTransferDeskService"]);
            _manuscriptService = new ManuscriptService(conString, conString);
            _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);
            _JournalRepository           = new JournalRepository(conString);
            journalvm                    = new JournalVM();
            JournalArticleTypeRepository = new JournalArticleTypeRepository(conString);
            journalarticletypevm         = new JournalArticleTypeVM();
            _JournalSectionReposistory   = new JournalSectionTypeRepository(conString);
            journalsectionvm             = new JournalSectionTypeVM();
        }