public static Auditoria ConstruirAuditoria(Object ObjectFlow, String Accion) { Auditoria Auditoria = new Auditoria(); Auditoria.Accion = Accion; Auditoria.Fecha = DateTime.Now.ToShortDateString(); Auditoria.Hora = DateTime.Now.ToShortTimeString(); Auditoria.IDObjectFlow = ((Parent)ObjectFlow).ID; Auditoria.XML = Factory.ToXML(ObjectFlow); Auditoria.Usuario = FrmMain.Usuario.UserID; return Auditoria; }