//private string PathTo_Home; public AccountController() { Dbconnection = WebConfigurationManager .ConnectionStrings["TradersDB"].ConnectionString; _repositForAcc = RepositControllersExtension.getReferReposit(this); _repositForAcc.initialDBConnect(Dbconnection); itemsList = new List <Item>(); }
// 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>(); }