public BookTypeController(IBookTypeServices books, IOptions <DbConn> dbconn) { bookTypeServices = books; var connection = dbconn.Value; string result = connection.SqlServer; }
public BookController(IBookServices _book, IBookTypeServices _bookTypeServices, IPublishHouseServices _publishHouseServices) { book = _book; bookTypeServices = _bookTypeServices; publishHouseServices = _publishHouseServices; this.log = LogManager.GetLogger(Startup.repository.Name, typeof(HomeController)); }