Exemple #1
0
 /// <summary>
 /// Modify a note to a specific donor account
 /// </summary>
 /// <param name="id">Account Id</param>
 /// <param name="type">Type of note</param>
 /// <param name="note">Stirng</param>
 public void UpdateNote(string id, string type, string note,int noteId)
 {
     var port = Models.Util.Port();
     accountNote insNotes = new accountNote();
     insNotes.noteId = noteId;
     insNotes.accountId = int.Parse(id);
     insNotes.note = HttpContext.Current.User.Identity.Name + " wrote: " + note;
     insNotes.noteType = type;
     insNotes.addDate = DateTime.Now;
     insNotes.nextActionNote = "NULL";
     insNotes.addUserId = 18;
     insNotes.modifiedDate = DateTime.Now;
     insNotes.modifiedUserId = 18;
     insNotes.nextDate = DateTime.Now;
     updateAccountNoteRequest insNotesInf = new updateAccountNoteRequest();
     insNotesInf.accountNote = insNotes;
     var account = port.updateAccountNote(insNotesInf);
 }
Exemple #2
0
 /// <summary>
 /// Delete a note 
 /// </summary>
 /// <param name="id">Account Id</param>
 /// <param name="type">Type of note</param>
 /// <param name="note">Stirng</param>
 public void DeleteNote(int noteId)
 {
     var port = Models.Util.Port();
     accountNote insNotes = new accountNote();
     insNotes.noteId = noteId;
     deleteAccountNoteRequest insNotesInf = new deleteAccountNoteRequest();
     insNotesInf.accountNote = insNotes;
     var account = port.deleteAccountNote(insNotesInf);
 }