Example #1
0
        public IHttpActionResult PostPerson(Person person)
        {
            var personId = _personnelModel.SavePerson(person);

            return(CreatedAtRoute("DefaultApi",
                                  new { id = personId },
                                  _personnelModel.GetPerson(personId)));
        }
Example #2
0
 public int PostPerson(Person person)
 {
     return(_personnelModel.SavePerson(person));
 }