public static IEnumerable <PrivilegeRequestDTO> Map(IEnumerable <PrivilegeRequestBO> privilegeRequests, IZeus zeus) { List <PrivilegeRequestDTO> selfs = new List <PrivilegeRequestDTO>(); foreach (PrivilegeRequestBO privilegeRequest in privilegeRequests) { PrivilegeRequestDTO contest = PrivilegeRequestDTO.Map(privilegeRequest, zeus); selfs.Add(contest); } return(selfs.AsEnumerable()); }
public static PrivilegeRequestDTO Map(PrivilegeRequestBO privilegeRequest, IZeus zeus) { PrivilegeRequestDTO self = new PrivilegeRequestDTO { PrivilegeRequestId = privilegeRequest.Id, UserId = privilegeRequest.UserId, Role = privilegeRequest.RoleName, RequestDate = DateExtension.ConvertDateToShort(privilegeRequest.RequestDate) }; return(self); }