public ActionResult Create(ConnectionProvider connectionProvider) { try { _dbConnectionProviderRepository.Insert(connectionProvider); return(RedirectToAction("Index")); } catch { return(View(connectionProvider)); } }
public int Insert(ConnectionProvider connectionProvider) { return(_dbRepository.Insert(connectionProvider.Name, connectionProvider.Value)); }