public async Task <string> DeletePaymentMethod(int id) { try { var res = await _repository.DeletePaymentMethod(id); return(res); } catch (Exception ex) { throw ex; } }
public HttpResponseMessage Delete([FromBody] Models.payment_method objPaymentMethod, long?updated_by) { try { bool deletePaymentmethod = paymentMethodRepository.DeletePaymentMethod(objPaymentMethod.payment_method_id, updated_by); var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, new Confirmation { output = "success", msg = "Payment method Deleted Successfully." }, formatter)); } catch (Exception ex) { var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, new Confirmation { output = "error", msg = ex.ToString() }, formatter)); } }
public IActionResult DeletePaymentMethod(int paymentMethodId) { _repo.DeletePaymentMethod(paymentMethodId); return(Ok()); }
public int DeletePaymentMethod(int PaymentMethodID) { return(_IPaymentMethodReportsitory.DeletePaymentMethod(PaymentMethodID)); }