Ejemplo n.º 1
0
 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);
        }
Ejemplo n.º 3
0
 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));
        }
Ejemplo n.º 5
0
 public bool DeletePaymentType(int id)
 {
     return(_repo.DeletePaymentType(id));
 }
        public ActionResult UpdateIsActive(int paymentTypeId)
        {
            _paymentRepository.DeletePaymentType(paymentTypeId);

            return(Ok());
        }