/// <summary> /// Deletes a store /// </summary> /// <param name="store">Store</param> public virtual void DeleteStore(Store store) { if (store == null) throw new ArgumentNullException("store"); var allStores = GetAllStores(); if (allStores.Count == 1) throw new Exception("You cannot delete the only configured store"); _storeRepository.Delete(store); _signals.Trigger(STORES_PATTERN_KEY); }
/// <summary> /// Updates the store /// </summary> /// <param name="store">Store</param> public virtual void UpdateStore(Store store) { if (store == null) throw new ArgumentNullException("store"); _storeRepository.Update(store); _signals.Trigger(STORES_PATTERN_KEY); }