Notes Api Controller updated with real code.