Esempio n. 1
0
 public JsonResult Connect(string server, string userName, string password)
 {
     return ExecuteCommand(
         () =>
         {
             IDatabaseProvider db = new SqlServerProvider();
             db.Initialize(server, userName, password);
             string serverName = db.GetServerName();
             DatabaseProvider = db;
             return serverName;
         }
     );
 }