Esempio n. 1
0
 public IHttpActionResult Cancel(int id)
 {
     try
     {
         _promotionService.CancelPromotion(id);
         return(Ok("Cancel Promotions Success"));
     }
     catch (Exception ex)
     {
         ErrorSignal.FromCurrentContext().Raise(ex);
         return(BadRequest("Update failed"));
     }
 }