Esempio n. 1
0
        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];
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public Reservation(BackendSession backend)
        {
            this.mapper = backend.GetMapper();

            this.tickets_Counter = new Tickets_Counter(backend);
        }
Esempio n. 4
0
 public Event(BackendSession backend)
 {
     this.mapper = backend.GetMapper();
 }