public override void Delete(LocaleStringResource t) { _lsrRepo.Remove(t); _unitOfWork.Complete(); //cache //_cacheManager.RemoveByPattern(LOCALSTRINGRESOURCES_PATTERN_KEY); }
public virtual void Delete(T entity) { if (entity == null) { throw new ArgumentNullException("entity"); } _repository.Remove(entity); _unitOfWork.Complete(); }
public void DeleteLocalizedProperty(LocalizedProperty localizedProperty) { if (localizedProperty == null) { throw new ArgumentNullException("localizedProperty"); } _localizedPropertyRepository.Remove(localizedProperty); _unitOfWork.Complete(); //cache //_cacheManager.RemoveByPattern(LOCALIZEDPROPERTY_PATTERN_KEY); }