예제 #1
0
        public async Task <string> DeletePaymentMethod(int id)
        {
            try
            {
                var res = await _repository.DeletePaymentMethod(id);

                return(res);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
        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));
            }
        }
예제 #3
0
 public IActionResult DeletePaymentMethod(int paymentMethodId)
 {
     _repo.DeletePaymentMethod(paymentMethodId);
     return(Ok());
 }
예제 #4
0
 public int DeletePaymentMethod(int PaymentMethodID)
 {
     return(_IPaymentMethodReportsitory.DeletePaymentMethod(PaymentMethodID));
 }