예제 #1
0
        /// <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)));
        }
예제 #2
0
 /// <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)));
 }