using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Fab2ApprovalSystem.Misc { //public class UserProfileDTO //{ // public int SysUserId { get; set; } // public string UserName { get; set; } // public string FullName { get; set; } //} public static class CollectionExtensions { public static IEnumerable SetValue(this IEnumerable items, Action updateMethod) { foreach (T item in items) { updateMethod(item); } return items; } } }