// POST: api/NewPatient public IHttpActionResult Post([FromBody]NewPatient newPatient) { string returnValue = string.Empty; PatientsData patients = new PatientsData(); string uniqueID = patients.RegisterANewPatient(newPatient); returnValue = "{ UniqueID : " + uniqueID + " }"; return Ok(uniqueID.ToString()); }