// GET: ExpectedResult/Create public ActionResult Create() { ViewBag.Tests = new SelectList(_dbTestRepository.GetData(), "Id", "Name"); ViewBag.ExpectedResultTypes = new SelectList(_dbExpectedResultTypeRepository.GetData(), "Id", "Name"); ViewBag.AssertTypes = new SelectList(_dbAssertTypeRepository.GetData(), "Id", "Name"); return(View()); }
public IQueryable <ExpectedResultType> GetData() { return(_dbRepository.GetData().AsQueryable()); }