// GET: Connection/Create public ActionResult Create() { ViewBag.Projects = new SelectList(_dbProjectRepository.GetData(), "ProjectId", "Name"); ViewBag.ConnectionProviders = new SelectList(_dbConnectionProviderRepository.GetData(), "Id", "Name"); return(View()); }
public IQueryable <ConnectionProvider> GetData() { return(_dbRepository.GetData().AsQueryable()); }