Beispiel #1
0
        public KPIConfiguration GetConfigurationById(int id)
        {
            KPIConfiguration result = new KPIConfiguration();

            SessionManager.DoWork(session =>
            {
                result = session.Query <KPIConfiguration>().SingleOrDefault(k => k.Id == id);
            });
            return(result);
        }
Beispiel #2
0
        public int PutConfiguration(KPIConfiguration obj)
        {
            int result = 0;

            SessionManager.DoWork(session =>
            {
                session.Update(obj);
                result = 1;
            });
            return(result);
        }