{"action":"created","issue":{"url":"https://api.github.com/repos/msoler8785/ExoMx/issues/2","labels_url":"https://api.github.com/repos/msoler8785/ExoMx/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/msoler8785/ExoMx/issues/2/comments","events_url":"https://api.github.com/repos/msoler8785/ExoMx/issues/2/events","html_url":"https://github.com/msoler8785/ExoMx/pull/2","id":56756521,"number":2,"title":"Cleanup any record view model","user":{"login":"eceowl","id":4378173,"avatar_url":"https://avatars.githubusercontent.com/u/4378173?v=3","gravatar_id":"","url":"https://api.github.com/users/eceowl","html_url":"https://github.com/eceowl","followers_url":"https://api.github.com/users/eceowl/followers","following_url":"https://api.github.com/users/eceowl/following{/other_user}","gists_url":"https://api.github.com/users/eceowl/gists{/gist_id}","starred_url":"https://api.github.com/users/eceowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eceowl/subscriptions","organizations_url":"https://api.github.com/users/eceowl/orgs","repos_url":"https://api.github.com/users/eceowl/repos","events_url":"https://api.github.com/users/eceowl/events{/privacy}","received_events_url":"https://api.github.com/users/eceowl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"msoler8785","id":5407743,"avatar_url":"https://avatars.githubusercontent.com/u/5407743?v=3","gravatar_id":"","url":"https://api.github.com/users/msoler8785","html_url":"https://github.com/msoler8785","followers_url":"https://api.github.com/users/msoler8785/followers","following_url":"https://api.github.com/users/msoler8785/following{/other_user}","gists_url":"https://api.github.com/users/msoler8785/gists{/gist_id}","starred_url":"https://api.github.com/users/msoler8785/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msoler8785/subscriptions","organizations_url":"https://api.github.com/users/msoler8785/orgs","repos_url":"https://api.github.com/users/msoler8785/repos","events_url":"https://api.github.com/users/msoler8785/events{/privacy}","received_events_url":"https://api.github.com/users/msoler8785/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-06T01:20:04Z","updated_at":"2015-02-06T12:34:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/msoler8785/ExoMx/pulls/2","html_url":"https://github.com/msoler8785/ExoMx/pull/2","diff_url":"https://github.com/msoler8785/ExoMx/pull/2.diff","patch_url":"https://github.com/msoler8785/ExoMx/pull/2.patch"},"body":"Just shortened up all of the loops by using the OfType<T> method.  It essentially does the exact same thing as your code, but in a single line.  Besides making the code look cleaner, it also reduces chance of causing bugs in the code.  Because it's a much simpler call you're much less likely to write the wrong thing."},"comment":{"url":"https://api.github.com/repos/msoler8785/ExoMx/issues/comments/73230128","html_url":"https://github.com/msoler8785/ExoMx/pull/2#issuecomment-73230128","issue_url":"https://api.github.com/repos/msoler8785/ExoMx/issues/2","id":73230128,"user":{"login":"msoler8785","id":5407743,"avatar_url":"https://avatars.githubusercontent.com/u/5407743?v=3","gravatar_id":"","url":"https://api.github.com/users/msoler8785","html_url":"https://github.com/msoler8785","followers_url":"https://api.github.com/users/msoler8785/followers","following_url":"https://api.github.com/users/msoler8785/following{/other_user}","gists_url":"https://api.github.com/users/msoler8785/gists{/gist_id}","starred_url":"https://api.github.com/users/msoler8785/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msoler8785/subscriptions","organizations_url":"https://api.github.com/users/msoler8785/orgs","repos_url":"https://api.github.com/users/msoler8785/repos","events_url":"https://api.github.com/users/msoler8785/events{/privacy}","received_events_url":"https://api.github.com/users/msoler8785/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T12:34:50Z","updated_at":"2015-02-06T12:34:50Z","body":"Yeah I knew this was horrible but I just couldn't figure out a better way. This makes perfect sense though. "}}