public static bool sendMessage(string username, string userToSend, string storeToSend, string msg, string storeRecive) { if (userToSend != null && userToSend.Length > 0) { aUser temp = getUser(userToSend); return(temp.sendMessage(new Message(storeRecive, storeToSend, userToSend, msg, true))); } else if (storeToSend != null && storeToSend.Length > 0) { Store temp = Stores.searchStore(storeToSend); return(temp.sendMessage(new Message(username, storeToSend, userToSend, msg, true))); } return(false); }