/// <summary> /// Adds the specified element. /// </summary> /// <param name="element">The element.</param> /// <returns></returns> public bool Add(Element element) { if (element == null) { return false; } if (resx.GetElement(element.Name, element.Category, element.Culture) == null) { resx.AddResource(element); return true; } else { return false; } }
public bool Update(Element element) { element.Culture = FileCulture; return this.StoreRepository.Update(element); }
public bool Remove(Element element) { element.Culture = FileCulture; return this.StoreRepository.Remove(element); }
public bool Add(Element element) { element.Culture = FileCulture; return this.StoreRepository.Add(element); }
/// <summary> /// Updates the specified element. /// </summary> /// <param name="element">The element.</param> /// <returns></returns> public bool Update(Element element) { if (element == null) { return false; } return resx.UpdateResource(element); }
/// <summary> /// Removes the specified element. /// </summary> /// <param name="element">The element.</param> /// <returns></returns> public bool Remove(Element element) { if (element == null) { return false; } return resx.RemoveResource(element); }
/// <summary> /// Initializes a new instance of the <see cref="ElementCacheKey" /> class. /// </summary> /// <param name="element">The element.</param> public ElementCacheKey(Element element) : this(element.Name, element.Category, element.Culture) { }