public ActionResult <PhoneBook> Create(PhoneBook book) { _phoneBookService.Create(book); return(CreatedAtRoute("GetPhoneBook", new { id = book.Id.ToString() }, book)); }
public ActionResult <Person> Create(Person person) { _phoneBookService.Create(person); return(CreatedAtRoute("GetPerson", new { id = person.Id.ToString() }, person)); }