public void setStoreMasterPassword(string phone, string masterPwd, string clientID) { try { int storeID = GetStoreIDbyPhone(phone); MySQLBusinessLogic bl = new MySQLBusinessLogic(); //masterPwd = Encrypt(masterPwd);//Encryption if (bl.SetStoreMasterPassword(phone, storeID, masterPwd)) { Clients.Client(clientID).setMasterAck("1"); } else Clients.Client(clientID).setMasterAck("0"); } catch (Exception ex) { Clients.Client(clientID).setMasterAck("0"); } }