public BankSoal GetNewSoal(int sesiId) { BankSoal obj = null; using (IDbContext context = new DbContext()) { _repository = new BankSoalRepository(context); obj = _repository.GetNewSoal(sesiId); } return(obj); }
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); }
public BankSoal GetById(int soalId) { BankSoal obj = null; using (IDbContext context = new DbContext()) { _repository = new BankSoalRepository(context); obj = _repository.GetById(soalId); } return(obj); }