[WebInvoke(Method = "POST", UriTemplate = "deleterefund")] //tempurl public void DeleteRefund(Refund refund) { try { refund.DeleteRefund(); } catch (Exception ex) { ErrorMessageInterceptor.ThrowError(HttpStatusCode.Forbidden, ex.Message); } }
[UriMapping(Method = "POST", Template = "tools/deleterefund", BodyParameter = "refund")] //tempurl public void DeleteRefund(Refund refund) { refund.DeleteRefund(); }