27 lines
622 B
C#
27 lines
622 B
C#
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<T> SetValue<T>(this IEnumerable<T> items, Action<T> updateMethod)
|
|
{
|
|
foreach (T item in items)
|
|
{
|
|
updateMethod(item);
|
|
}
|
|
return items;
|
|
}
|
|
}
|
|
|
|
} |