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")); } }
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")); } }