public void DeleteIssueReply(User aDeletingUser, IssueReply anIssueReply, bool anAdminDelete)
 {
     anIssueReply.Deleted = true;
     anIssueReply.DeletedByUserId = aDeletingUser.Id;
     theEntities.ApplyCurrentValues(anIssueReply.EntityKey.EntitySetName, anIssueReply);
     theEntities.SaveChanges();
 }
 public static IssueReplyWrapper Build(IssueReply aReply)
 {
     return new IssueReplyWrapper() {
         Id = aReply.Id,
         Body = aReply.Reply,
         Disposition = aReply.Disposition,
         City = aReply.City,
         State = aReply.State
     };
 }
 /// <summary>
 /// Create a new IssueReply object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="issueId">Initial value of the IssueId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="reply">Initial value of the Reply property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="zip">Initial value of the Zip property.</param>
 /// <param name="disposition">Initial value of the Disposition property.</param>
 /// <param name="anonymous">Initial value of the Anonymous property.</param>
 /// <param name="dateTimeStamp">Initial value of the DateTimeStamp property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 public static IssueReply CreateIssueReply(global::System.Int32 id, global::System.Int32 issueId, global::System.Int32 userId, global::System.String reply, global::System.String city, global::System.String state, global::System.Int32 zip, global::System.Int32 disposition, global::System.Boolean anonymous, global::System.DateTime dateTimeStamp, global::System.Boolean deleted)
 {
     IssueReply issueReply = new IssueReply();
     issueReply.Id = id;
     issueReply.IssueId = issueId;
     issueReply.UserId = userId;
     issueReply.Reply = reply;
     issueReply.City = city;
     issueReply.State = state;
     issueReply.Zip = zip;
     issueReply.Disposition = disposition;
     issueReply.Anonymous = anonymous;
     issueReply.DateTimeStamp = dateTimeStamp;
     issueReply.Deleted = deleted;
     return issueReply;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the IssueReplys EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToIssueReplys(IssueReply issueReply)
 {
     base.AddObject("IssueReplys", issueReply);
 }
 public void UpdateIssueReply(User aUser, IssueReply anOriginal, IssueReply aNew, bool anOverride)
 {
     string myOldReply = anOriginal.Reply;
     int myOldDisposition = anOriginal.Disposition;
     AuditIssueReply myAudit =
         AuditIssueReply.CreateAuditIssueReply(0, anOriginal.Id, myOldReply, myOldDisposition, DateTime.UtcNow, aUser.Id);
     anOriginal.Disposition = aNew.Disposition;
     anOriginal.Reply = aNew.Reply;
     anOriginal.UpdatedDateTimeStamp = DateTime.UtcNow;
     anOriginal.UpdatedUserId = aUser.Id;
     theEntities.AddToAuditIssueReplys(myAudit);
     theEntities.ApplyCurrentValues(anOriginal.EntityKey.EntitySetName, anOriginal);
     theEntities.SaveChanges();
 }