public static int UpdateAlpacaKeys(string userID, string liveApiKey, string liveApiSecretKey, string paperApiKey, string paperApiSecretKey) { AlpacaKeyModel data = new AlpacaKeyModel { UserID = userID, LiveApiKey = liveApiKey, LiveApiSecretKey = liveApiSecretKey, PaperApiKey = paperApiKey, PaperApiSecretKey = paperApiSecretKey }; string sql = @"update users set LiveApiKey = @LiveApiKey, LiveApiSecretKey = @LiveApiSecretKey, PaperApiKey = @PaperApiKey, PaperApiSecretKey = @PaperApiSecretKey where Id=@UserID;"; return(MySqlDataAccess.SaveData(sql, data)); }