{"action":"created","issue":{"url":"https://api.github.com/repos/developersdo/empleo-dot-net/issues/300","repository_url":"https://api.github.com/repos/developersdo/empleo-dot-net","labels_url":"https://api.github.com/repos/developersdo/empleo-dot-net/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/developersdo/empleo-dot-net/issues/300/comments","events_url":"https://api.github.com/repos/developersdo/empleo-dot-net/issues/300/events","html_url":"https://github.com/developersdo/empleo-dot-net/pull/300","id":138754813,"number":300,"title":"Created Trim Model Binder","user":{"login":"EfrainReyes","id":3720319,"avatar_url":"https://avatars.githubusercontent.com/u/3720319?v=3","gravatar_id":"","url":"https://api.github.com/users/EfrainReyes","html_url":"https://github.com/EfrainReyes","followers_url":"https://api.github.com/users/EfrainReyes/followers","following_url":"https://api.github.com/users/EfrainReyes/following{/other_user}","gists_url":"https://api.github.com/users/EfrainReyes/gists{/gist_id}","starred_url":"https://api.github.com/users/EfrainReyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EfrainReyes/subscriptions","organizations_url":"https://api.github.com/users/EfrainReyes/orgs","repos_url":"https://api.github.com/users/EfrainReyes/repos","events_url":"https://api.github.com/users/EfrainReyes/events{/privacy}","received_events_url":"https://api.github.com/users/EfrainReyes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-06T04:47:16Z","updated_at":"2016-03-11T02:17:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/developersdo/empleo-dot-net/pulls/300","html_url":"https://github.com/developersdo/empleo-dot-net/pull/300","diff_url":"https://github.com/developersdo/empleo-dot-net/pull/300.diff","patch_url":"https://github.com/developersdo/empleo-dot-net/pull/300.patch"},"body":"#299\r\n\r\nEn buena medida lo hice gracias a este post de stackoverflow: http://stackoverflow.com/a/1734025/2563028\r\n\r\nsin embargo cuando escribí el test para verificar el trimming en el caso donde el parámetro que se pasa al action es un string simple, me estaba fallando, así que le hice override a BindModel también para poder hacer trim ahí.\r\n\r\nOtra cosa que hice fue que cambié el nombre del namespace Core en el proyecto web EmpleoDotNet a EmpleoDotNet.Code para que no se confundiera con el proyecto EmpleoDotNet.Core"},"comment":{"url":"https://api.github.com/repos/developersdo/empleo-dot-net/issues/comments/195145772","html_url":"https://github.com/developersdo/empleo-dot-net/pull/300#issuecomment-195145772","issue_url":"https://api.github.com/repos/developersdo/empleo-dot-net/issues/300","id":195145772,"user":{"login":"jgtaveras","id":1023322,"avatar_url":"https://avatars.githubusercontent.com/u/1023322?v=3","gravatar_id":"","url":"https://api.github.com/users/jgtaveras","html_url":"https://github.com/jgtaveras","followers_url":"https://api.github.com/users/jgtaveras/followers","following_url":"https://api.github.com/users/jgtaveras/following{/other_user}","gists_url":"https://api.github.com/users/jgtaveras/gists{/gist_id}","starred_url":"https://api.github.com/users/jgtaveras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgtaveras/subscriptions","organizations_url":"https://api.github.com/users/jgtaveras/orgs","repos_url":"https://api.github.com/users/jgtaveras/repos","events_url":"https://api.github.com/users/jgtaveras/events{/privacy}","received_events_url":"https://api.github.com/users/jgtaveras/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T02:17:18Z","updated_at":"2016-03-11T02:17:18Z","body":"@EfrainReyes algo interesante que se pudieras considerar es solo agregar el model binder para los strings algo así como \r\n\r\n`ModelBinders.Binders.Add(typeof(string), new StringBinder());`\r\n\r\npor que, que pasa si luego necesitamos agregar un modelbinder a las fechas o a los números ?? tendríamos que modificar ese el TrimModelBinder o crear el binder por separado y luego agregarlo ??"}}