* Simplified patch scenario done "manually"
*
* @return updated object
*/
public Member patch(Integer id, Member newMember) {
Member oldMember = memberCollection.get(id);
if(newMember.getEmail() !=null){
oldMember.setEmail(newMember.getEmail());
}
if(newMember.getInfo() !=null){
oldMember.setInfo(newMember.getInfo());
}
if(newMember.getName() !=null){
oldMember.setName(newMember.getEmail());
}
return newMember;
}