Im using the modelstate property to check if my model is valid.
It all works well however when i add more properties (which do not exist in my model) to my json body it says the model is still valid.

How would one check the json body sent to match the C# model?

This is my model for now:

```
public class User
    {
        public int Id { get; set; }
        public string IdentityServerId { get; set; }
        [Required(ErrorMessage = "Email is required")]
        [EmailAddress(ErrorMessage = "Not a valid emailaddress")]
        public string Email { get; set; }
        [Required(ErrorMessage = "Name is required")]
        public string Name { get; set; }
        public bool IsActive { get; set; }
    }

```

The correctly formatted json would be:

```
{
    "Name": "Klaas",
    "Email": "eifjelfij@sdf"
}

```

This gives a 200 OK which creates the corresponding user.

However when i'm sending this json:

```
{
    "Name": "Arjan",
    "Email": "eifjelfij@sdf",
    "eifj":"eflijelfij"
}

```

It still creates the user but i'd love to give the user an error message instead of user creation.