Esempio n. 1
0
        public BookTypeController(IBookTypeServices books, IOptions <DbConn> dbconn)
        {
            bookTypeServices = books;
            var connection = dbconn.Value;

            string result = connection.SqlServer;
        }
Esempio n. 2
0
        public BookController(IBookServices _book, IBookTypeServices _bookTypeServices, IPublishHouseServices _publishHouseServices)
        {
            book                 = _book;
            bookTypeServices     = _bookTypeServices;
            publishHouseServices = _publishHouseServices;

            this.log = LogManager.GetLogger(Startup.repository.Name, typeof(HomeController));
        }