/// <summary>
 /// Create a new Audit object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="questionId">Initial value of the QuestionId property.</param>
 /// <param name="auditType">Initial value of the AuditType property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="auditDate">Initial value of the AuditDate property.</param>
 public static Audit CreateAudit(global::System.Int32 id, global::System.Int32 questionId, global::System.String auditType, global::System.String userName, global::System.DateTime auditDate)
 {
     Audit audit = new Audit();
     audit.Id = id;
     audit.QuestionId = questionId;
     audit.AuditType = auditType;
     audit.UserName = userName;
     audit.AuditDate = auditDate;
     return audit;
 }
 public void Audit(string username, int id)
 {
     var entity = new Audit {UserName = username, QuestionId = id, AuditType = "Read"};
     _repository.Add(entity);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Audits EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAudits(Audit audit)
 {
     base.AddObject("Audits", audit);
 }