/// <summary> /// Sets the group type role list order. /// </summary> /// <param name="itemList">The item list.</param> private void SetGroupTypeRoleListOrder( ViewStateList<GroupTypeRole> itemList ) { int order = 0; itemList.OrderBy( a => a.Order ).ToList().ForEach( a => a.Order = order++ ); }
/// <summary> /// Sets the attribute list order. /// </summary> /// <param name="itemList">The item list.</param> private void SetAttributeListOrder( ViewStateList<Attribute> itemList ) { int order = 0; itemList.OrderBy( a => a.Order ).ToList().ForEach( a => a.Order = order++ ); }
/// <summary> /// Sets the attribute list order. /// </summary> /// <param name="attributeList">The attribute list.</param> private void SetAttributeListOrder( ViewStateList<Attribute> attributeList ) { int order = 0; attributeList.OrderBy( a => a.Order ).ThenBy( a => a.Name ).ToList().ForEach( a => a.Order = order++ ); }