public ActionResult <Person> Create([FromBody] Person newData) { try { return(Ok(_ps.Create(newData))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Person> Create([FromBody] Person newData) { try { return(Ok(_ps.Create(newData))); } catch (Exception e) { return(BadRequest(e.Message)); } }