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

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