示例#1
0
        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);
        }
示例#2
0
        public static async Task <string> OldChangesToHtml(this IAuditEvent applicationEvent)
        {
            if (applicationEvent.Event.IsAnyOf("Update", "Delete"))
            {
                return(await applicationEvent.ToHtml("old"));
            }

            return(string.Empty);
        }