Esempio n. 1
0
        public static void Delete(long userId, bool deleteRestrictions = false)
        {
            BusinessDomain.DataAccessProvider.DeleteUser(userId);
            cache.Remove(userId);

            if (!deleteRestrictions)
            {
                return;
            }

            ConfigEntry.Delete(LOCKED_LOCATION_KEY, userId);
            ConfigEntry.Delete(LOCKED_PARTNER_KEY, userId);
            ConfigEntry.Delete(DEFAULT_COMPANY_KEY, userId);
            ConfigEntry.Delete(HIDE_ITEMS_PURCHASE_PRICE_KEY, userId);
            ConfigEntry.Delete(HIDE_ITEMS_AVAILABILITY_KEY, userId);
            ConfigEntry.Delete(ALLOW_ZERO_PRICES_KEY, userId);
        }
Esempio n. 2
0
 public static void Delete(long vatGroupId)
 {
     BusinessDomain.DataAccessProvider.DeleteVATGroup(vatGroupId);
     cache.Remove(vatGroupId);
 }
 public static void Delete(long groupId)
 {
     BusinessDomain.DataAccessProvider.DeleteLocationsGroup(groupId);
     cache.Remove(groupId);
 }
Esempio n. 4
0
 public static void Delete(long locationId)
 {
     BusinessDomain.DataAccessProvider.DeleteLocation(locationId);
     cache.Remove(locationId);
 }
Esempio n. 5
0
 public static void Delete(long paymentTypeId)
 {
     BusinessDomain.DataAccessProvider.DeletePaymentMethod(paymentTypeId);
     cache.Remove(paymentTypeId);
 }
Esempio n. 6
0
 public static void Delete(long itemId)
 {
     BusinessDomain.DataAccessProvider.DeleteItem(itemId);
     cache.Remove(itemId);
 }
Esempio n. 7
0
 public static void Delete(long partnerId)
 {
     BusinessDomain.DataAccessProvider.DeletePartner(partnerId);
     cache.Remove(partnerId);
 }