예제 #1
0
        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);
            }
        }