public IActionResult Create(Person person) { IDAO <Person> personDAO = new PersonDAO(_connection); personDAO.Create(person); return(CreatedAtRoute("Get Person", new { id = person.Id }, person)); }
public IActionResult Create(Person person) { IDAO <Person> personDAO = new PersonDAO(_connection); personDAO.Create(person); return(CreatedAtRoute("Get Person", new { id = person.Id }, person)); }