Exemplo n.º 1
0
        //private string PathTo_Home;
        public AccountController()
        {
            Dbconnection = WebConfigurationManager
                           .ConnectionStrings["TradersDB"].ConnectionString;

            _repositForAcc =
                RepositControllersExtension.getReferReposit(this);
            _repositForAcc.initialDBConnect(Dbconnection);
            itemsList = new List <Item>();
        }
Exemplo n.º 2
0
        // post:
        public BaseController()
        {
            //connectionString = WebConfigurationManager
            // .ConnectionStrings["TradersDB"].ConnectionString;
            Dbconnection = WebConfigurationManager
                           .ConnectionStrings["TradersDB"].ConnectionString;
            _repositForCurrTrader = new RepositoryForTrader();
            _repositForCurrTrader.initialDBConnect(Dbconnection);

            Infrastructure.
            RepositControllersExtension.setReferenceOnRepos(this, _repositForCurrTrader);
            TraderState = false;
            baseList    = new List <Item>();
        }