Exemplo n.º 1
0
        //Contructor that sets the connection string to variables for use throughout the controller.
        public CommentsController()
        {
            string connection = ConfigurationManager.ConnectionStrings["dataSource"].ConnectionString;

            _dataAccess     = new CommentDAO(connection);
            _gameDataAccess = new QuaintDAO(connection);
        }