public void Post([FromBody] DisplayPersonModel newPerson) { if (ModelState.IsValid) { PersonModel p = new PersonModel() { FirstName = newPerson.FirstName, LastName = newPerson.LastName, EmailAddress = newPerson.EmailAddress }; db.InsertPerson(p); } }