コード例 #1
0
 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"));
     }
 }