{"action":"closed","issue":{"url":"https://api.github.com/repos/gembaf/Fortaggle/issues/35","labels_url":"https://api.github.com/repos/gembaf/Fortaggle/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/gembaf/Fortaggle/issues/35/comments","events_url":"https://api.github.com/repos/gembaf/Fortaggle/issues/35/events","html_url":"https://github.com/gembaf/Fortaggle/issues/35","id":81382213,"number":35,"title":"リファクタリング : ViewModelでは揮発性のデータしか持たないようにする","user":{"login":"gembaf","id":3294942,"avatar_url":"https://avatars.githubusercontent.com/u/3294942?v=3","gravatar_id":"","url":"https://api.github.com/users/gembaf","html_url":"https://github.com/gembaf","followers_url":"https://api.github.com/users/gembaf/followers","following_url":"https://api.github.com/users/gembaf/following{/other_user}","gists_url":"https://api.github.com/users/gembaf/gists{/gist_id}","starred_url":"https://api.github.com/users/gembaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gembaf/subscriptions","organizations_url":"https://api.github.com/users/gembaf/orgs","repos_url":"https://api.github.com/users/gembaf/repos","events_url":"https://api.github.com/users/gembaf/events{/privacy}","received_events_url":"https://api.github.com/users/gembaf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-27T10:08:13Z","updated_at":"2015-05-30T07:41:35Z","closed_at":"2015-05-30T07:41:35Z","body":"現在は、ViewModel内のプロパティでは、フィールドとして持っているModelのインスタンスを直接変更している。\r\nこれを、保存の処理が走った場合のみModel側に書き込むようにする。\r\n保存の処理は、ViewModel側へ命令し、内部でModelの処理を実行する。\r\n今回で言うと、ItemGroupServiceViewModelへ命令し、内部でItemGroupServiceとその子要素を保存する形となる。"}}