public IHttpActionResult CancelAppointment(int id, [FromBody] string reason) { try { _apmServices.CancelAppointment(id, reason); return(Ok("Cancelling Success")); } catch (Exception ex) { ErrorSignal.FromCurrentContext().Raise(ex); return(BadRequest("Cancelling Failed")); } }