public IRestResponse <PatientUpdate> UpdatePatient(PatientUpdate patient) { patient.Meta = new Models.Patientadmin.Patientupdate.Meta { DataModel = "PatientAdmin", EventType = "PatientUpdate", EventDateTime = DateTime.UtcNow.ToString("s", System.Globalization.CultureInfo.InvariantCulture), }; return(Post(patient)); }
public IHttpActionResult PatientAdmin_PatientUpdate([FromBody] RedoxApi.Models.Patientadmin.Patientupdate.Patientupdate patient) { // Make sure this request comes from Redox if (!IsAuthorized()) { return(BadRequest()); } // Update the new patient (no function for this yet). return(Ok()); }