public UserAuditEvent(string message, object source, UserAuditTypes type, Guid userID) : base(message, source, WebEventCodes.WebExtendedBase + (int)type) { this.Message = message; this.UserID = userID; this.UserAuditType = type; }
public static string Message(UserAuditTypes type) { switch (type) { case UserAuditTypes.UserLogin: return "User successfully logged in"; case UserAuditTypes.UserSignup: return "User successfully signed up"; case UserAuditTypes.UserLockedOut: return "User was locked out"; case UserAuditTypes.UserEnrolled: return "User Enrolled to a new course"; default: return ""; } }