fixed some issues here and there.

This commit is contained in:
kay.one 2013-05-10 22:59:42 -07:00
commit 85cd877b0c
12 changed files with 66 additions and 20 deletions

View file

@ -135,6 +135,7 @@ namespace NzbDrone.Api.REST
private TResource ReadFromRequest()
{
//TODO: handle when request is null
var resource = Request.Body.FromJson<TResource>();
var errors = SharedValidator.Validate(resource).Errors.ToList();