/// <summary> /// Finds the group with the specified name. /// </summary> /// <param name="name">The name.</param> /// <returns></returns> public virtual WebAssetGroup FindGroupByName(string name) { Guard.IsNotNullOrEmpty(name, "name"); return(AssetGroups.SingleOrDefault(group => group.Name.IsCaseInsensitiveEqual(name))); }
/// <summary> /// Finds the group with the specified name. /// </summary> /// <param name="name">The name.</param> /// <returns></returns> public virtual WebAssetItemGroup FindGroupByName(string name) { return(AssetGroups.SingleOrDefault(group => group.Name.IsCaseInsensitiveEqual(name))); }