{"action":"created","issue":{"url":"https://api.github.com/repos/marcin-pwr/hotel/issues/10","repository_url":"https://api.github.com/repos/marcin-pwr/hotel","labels_url":"https://api.github.com/repos/marcin-pwr/hotel/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/marcin-pwr/hotel/issues/10/comments","events_url":"https://api.github.com/repos/marcin-pwr/hotel/issues/10/events","html_url":"https://github.com/marcin-pwr/hotel/issues/10","id":145507873,"number":10,"title":"WEB Extend client registration form","user":{"login":"marcin-pwr","id":11233845,"avatar_url":"https://avatars.githubusercontent.com/u/11233845?v=3","gravatar_id":"","url":"https://api.github.com/users/marcin-pwr","html_url":"https://github.com/marcin-pwr","followers_url":"https://api.github.com/users/marcin-pwr/followers","following_url":"https://api.github.com/users/marcin-pwr/following{/other_user}","gists_url":"https://api.github.com/users/marcin-pwr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcin-pwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcin-pwr/subscriptions","organizations_url":"https://api.github.com/users/marcin-pwr/orgs","repos_url":"https://api.github.com/users/marcin-pwr/repos","events_url":"https://api.github.com/users/marcin-pwr/events{/privacy}","received_events_url":"https://api.github.com/users/marcin-pwr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/marcin-pwr/hotel/milestones/1","html_url":"https://github.com/marcin-pwr/hotel/milestones/First%20demo","labels_url":"https://api.github.com/repos/marcin-pwr/hotel/milestones/1/labels","id":1666493,"number":1,"title":"First demo","description":"","creator":{"login":"marcin-pwr","id":11233845,"avatar_url":"https://avatars.githubusercontent.com/u/11233845?v=3","gravatar_id":"","url":"https://api.github.com/users/marcin-pwr","html_url":"https://github.com/marcin-pwr","followers_url":"https://api.github.com/users/marcin-pwr/followers","following_url":"https://api.github.com/users/marcin-pwr/following{/other_user}","gists_url":"https://api.github.com/users/marcin-pwr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcin-pwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcin-pwr/subscriptions","organizations_url":"https://api.github.com/users/marcin-pwr/orgs","repos_url":"https://api.github.com/users/marcin-pwr/repos","events_url":"https://api.github.com/users/marcin-pwr/events{/privacy}","received_events_url":"https://api.github.com/users/marcin-pwr/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2016-03-25T22:28:31Z","updated_at":"2016-04-05T17:47:48Z","due_on":"2016-04-18T22:00:00Z","closed_at":null},"comments":1,"created_at":"2016-04-03T14:45:54Z","updated_at":"2016-04-05T17:56:49Z","closed_at":null,"body":"- add address and phone support  (now there are hardcoded strings persistence in user controller)"},"comment":{"url":"https://api.github.com/repos/marcin-pwr/hotel/issues/comments/205920035","html_url":"https://github.com/marcin-pwr/hotel/issues/10#issuecomment-205920035","issue_url":"https://api.github.com/repos/marcin-pwr/hotel/issues/10","id":205920035,"user":{"login":"marcin-pwr","id":11233845,"avatar_url":"https://avatars.githubusercontent.com/u/11233845?v=3","gravatar_id":"","url":"https://api.github.com/users/marcin-pwr","html_url":"https://github.com/marcin-pwr","followers_url":"https://api.github.com/users/marcin-pwr/followers","following_url":"https://api.github.com/users/marcin-pwr/following{/other_user}","gists_url":"https://api.github.com/users/marcin-pwr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcin-pwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcin-pwr/subscriptions","organizations_url":"https://api.github.com/users/marcin-pwr/orgs","repos_url":"https://api.github.com/users/marcin-pwr/repos","events_url":"https://api.github.com/users/marcin-pwr/events{/privacy}","received_events_url":"https://api.github.com/users/marcin-pwr/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T17:56:49Z","updated_at":"2016-04-05T17:56:49Z","body":"@KJRG can you take it? there will be some fixes in registration template, then in controller there should be some service method invoke and in service there should be population of client and address objects. Now as you can see there is everything done in controller and moreover there are only hardcoded strings persisted by entity manager. If such logic will be in service we could later use it while adding new client by reception or from desktop app.."}}