public Tickets_Counter(BackendSession backend) { this.session = backend.GetSession(); this.mapper = backend.GetMapper(); // this.queryOptions = backend.GetQueryOptions(); var statements = backend.GetPreparedStatements(); this.incrementCounter = statements[0]; this.decrementCounter = statements[1]; }
public void SetUserSesion(EUserInfoBackEnd eUserInfoBackEnd) { BackendSession session = new BackendSession() { UserName = eUserInfoBackEnd.LoginName, UserRole = eUserInfoBackEnd.UserRole }; var json = JsonConvert.SerializeObject(session); HttpContext.Session.SetString(EduConstant.BackendSessionKey, json); }
public Reservation(BackendSession backend) { this.mapper = backend.GetMapper(); this.tickets_Counter = new Tickets_Counter(backend); }
public Event(BackendSession backend) { this.mapper = backend.GetMapper(); }