Пример #1
0
        public BankSoal GetNewSoal(int sesiId)
        {
            BankSoal obj = null;

            using (IDbContext context = new DbContext())
            {
                _repository = new BankSoalRepository(context);
                obj         = _repository.GetNewSoal(sesiId);
            }

            return(obj);
        }
Пример #2
0
        public HistoriTes GetLastSoal(int sesiId, bool cekJawaban = true, int incrementSoalNumber = 1)
        {
            HistoriTes obj = null;

            using (IDbContext context = new DbContext())
            {
                _repository = new BankSoalRepository(context);
                obj         = _repository.GetLastSoal(sesiId, cekJawaban, incrementSoalNumber);
            }

            return(obj);
        }
Пример #3
0
        public BankSoal GetById(int soalId)
        {
            BankSoal obj = null;

            using (IDbContext context = new DbContext())
            {
                _repository = new BankSoalRepository(context);
                obj         = _repository.GetById(soalId);
            }

            return(obj);
        }