public IHttpActionResult CancelAppointment([FromBody] CancelAppointmentDTO cancelAppointment) { AppointmentLogic appointmentLogic = new AppointmentLogic(); var AffectedRow = appointmentLogic.CancelAppointment(cancelAppointment.ID, cancelAppointment.CurrentUserID); if (AffectedRow == 0) { NotFound(); } return(Ok(AffectedRow)); }