public DashboardController() { provider = Membership.Provider; Unit = new UnitOfWork(); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); Unit = new UnitOfWork(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); timer = new Timer(60000); timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); timer.Enabled = true; }
public BaseController() { Unit = new UnitOfWork(); }
void timer_Elapsed(object sender, ElapsedEventArgs e) { int? state = new UnitOfWork().PokerBetSrvc.ChangeGameState(); DoGeneralActions(state); }