Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }