Esempio n. 1
0
 public ActionResult Edit(int id, ConnectionProvider connectionProvider)
 {
     try
     {
         _dbConnectionProviderRepository.Update(connectionProvider);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View(connectionProvider));
     }
 }
 public void Update(ConnectionProvider connectionProvider)
 {
     _dbRepository.Update(connectionProvider.Name, connectionProvider.Value, connectionProvider.Id);
 }