public IHttpActionResult PostPerson(Person person) { var personId = _personnelModel.SavePerson(person); return(CreatedAtRoute("DefaultApi", new { id = personId }, _personnelModel.GetPerson(personId))); }
public int PostPerson(Person person) { return(_personnelModel.SavePerson(person)); }