//get message from single user public List <Message> getMessage(MussageBusiness mes) { messageBusiness = new MussageBusiness(); return(messageBusiness.ReturnMessages(mes.yourID, mes.reciverID)); }
//get all message (default) public List <Message> getMessage() { messageBusiness = new MussageBusiness(); return(messageBusiness.ReturnMessages()); }