public static async Task <string> NewChangesToHtml(this IAuditEvent applicationEvent) { if (applicationEvent.Event == "Update") { return(await applicationEvent.ToHtml("new")); } if (applicationEvent.Event == "Insert") { return(await applicationEvent.ToHtml()); } return(string.Empty); }
public static async Task <string> OldChangesToHtml(this IAuditEvent applicationEvent) { if (applicationEvent.Event.IsAnyOf("Update", "Delete")) { return(await applicationEvent.ToHtml("old")); } return(string.Empty); }