public bool DeletePaymentType(long paymentTypeId)
 {
     try
     {
         var returnStatus = _repository.Remove(paymentTypeId);
         _uoWork.SaveChanges();
         return(returnStatus.PaymentTypeId > 0);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(false);
     }
 }
 public bool DeleteRegister(long registerId)
 {
     try
     {
         var returnStatus = _repository.Remove(registerId);
         _uoWork.SaveChanges();
         return returnStatus.RegisterId > 0;
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return false;
     }
 }
 public bool DeleteBankAccount(long bankAccountId)
 {
     try
     {
         var returnStatus = _repository.Remove(bankAccountId);
         _uoWork.SaveChanges();
         return(returnStatus.BankAccountId > 0);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(false);
     }
 }
 public bool DeleteUnitsOfMeasurement(long unitsOfMeasurementId)
 {
     try
     {
         _repository.Remove(unitsOfMeasurementId);
         _uoWork.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(false);
     }
 }
 public bool DeleteStoreItemSold(long itemSoldId)
 {
     try
     {
         var returnStatus = _repository.Remove(itemSoldId);
         _uoWork.SaveChanges();
         return(returnStatus.StoreItemSoldId > 0);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(false);
     }
 }
Exemple #6
0
 public bool DeleteContactTag(long contactTagId)
 {
     try
     {
         var returnStatus = _repository.Remove(contactTagId);
         _uoWork.SaveChanges();
         return(returnStatus.ContactTagId > 0);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(false);
     }
 }
 public bool DeleteSubscriptionPackage(long subscriptionPackageId)
 {
     try
     {
         var returnStatus = _repository.Remove(subscriptionPackageId);
         _uoWork.SaveChanges();
         return(returnStatus.SubscriptionPackageId > 0);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(false);
     }
 }
 public bool DeleteStoreSetting(long storeSettingId)
 {
     try
     {
         _repository.Remove(storeSettingId);
         _uoWork.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(false);
     }
 }
Exemple #9
0
 public bool DeleteAccountGroup(long accountGroupId)
 {
     try
     {
         _repository.Remove(accountGroupId);
         _uoWork.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(false);
     }
 }
 public bool DeleteDeliveryMethod(long deliveryMethodId)
 {
     try
     {
         var returnStatus = _repository.Remove(deliveryMethodId);
         _uoWork.SaveChanges();
         return(returnStatus.DeliveryMethodId > 0);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(false);
     }
 }