public RoleDeletedEventArgs(Role role, string loginName, string firstName, string lastName, DateTime eventTime) : base(loginName, firstName, lastName, eventTime) { Role = new AuditEventRole(); Mapper.Map(role, Role); }
public RoleEditedEventArgs(Role oldRole, string loginName, string firstName, string lastName, DateTime eventTime) : base(loginName, firstName, lastName, eventTime) { OldRole = new AuditEventRole(); NewRole = new AuditEventRole(); Mapper.Map(oldRole, OldRole); }
public static string ToXmlString(this AuditEventRole role) { var root = new XElement(Literals.ROLE); var permissions = new XElement(Literals.PERMISSIONS); foreach (string permission in role.Permissions) { permissions.Add(new XElement(Literals.PERMISSION, permission)); } root.Add(permissions); return(root.ToString()); }