public static bool DeletePaymentType(int id) { if (PaymentTypeRepository.GetPaymentType(id) != null) { PaymentTypeRepository.DeletePaymentType(id); return(true); } return(false); }
public void Delete(UpdatePaymentTypeCommand updatedPaymentTypeCommand, int id) { var repo = new PaymentTypeRepository(); var updatedPaymentType = new PaymentType { Name = updatedPaymentTypeCommand.Name, }; repo.DeletePaymentType(updatedPaymentType, id); }
public bool DeletePaymentType(long paymentTypeAccountId) { try { return(_paymentTypeRepository.DeletePaymentType(paymentTypeAccountId)); } catch (Exception ex) { ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message); return(false); } }
public ActionResult DeletePaymentType(int id) { var paymentTypeToDelete = _paymentTypeRepository.DeletePaymentType(id); return(Ok(paymentTypeToDelete)); }
public bool DeletePaymentType(int id) { return(_repo.DeletePaymentType(id)); }
public ActionResult UpdateIsActive(int paymentTypeId) { _paymentRepository.DeletePaymentType(paymentTypeId); return(Ok()); }