Audit Trail in C#

The how awesome is viagra following class pharmacy on canada online expects an audit event which is passed as a string and can be but not limited to (Inserting, Updating, Deleting, Logging in e.t.c) and also a small description can be passed to the class. Inside the class sessions which store the logged in userID and the name as recognized by IIS are appended to the other values to log into the database for reports that system auditor’s use for auditing purposes.

using <a style="text-decoration: none;color: inherit;cursor: default" href="http://cialisonline-bestrxstore.com" rel="nofollow">cialis for bph reviews</a>  System.Web.UI; using <a style="text-decoration: none;color: inherit;cursor: default" href="http://genericviagra-onlinerxstore.com" rel="nofollow">viagra under the tongue</a>  System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using DB_CLASSES; /// <summary> /// Summary description for ClsAudit <a style="text-decoration: none;color: inherit;cursor: default" href="http://genericviagra-onlinerxstore.com" rel="nofollow">100mg dose of viagra</a>  /// </summary> public class ClsAudit { public ClsAudit() { // // TODO: Add constructor logic here // } public static void Log_Audit(string audit, string description) { AuditTrailManager ad = new AuditTrailManager(); string username = HttpContext.Current.Session["auth101"].ToString(); int userID = int.Parse(HttpContext.Current.Session["UserId"].ToString()); X_AuditTrail aud = new X_AuditTrail(); <a style="text-decoration: none;color: inherit;cursor: default" href="http://genericviagra-onlinerxstore.com">mexico viagra</a>  aud.Audit = audit; aud.Description = description; aud.CreatedBy = username; aud.UserID <a style="text-decoration: none;color: inherit;cursor: default" href="http://cialisonline-bestrxstore.com">cialis kick in time</a>  = userID; aud.OsysDate = System.DateTime.Now; aud.IsDeleted = false; ad.SaveX_AuditTrail(aud); } }

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.