/// <summary> /// Inserts 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 InsertNote(string id, string type, string note) { var port = Models.Util.Port(); WipService.accountNote insNotes = new MPXMobile.WipService.accountNote(); 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; WipService.insertAccountNoteRequest insNotesInf = new MPXMobile.WipService.insertAccountNoteRequest(); insNotesInf.accountNote = insNotes; var account = port.insertAccountNote(insNotesInf); }
/// <summary> /// Inserts 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 InsertNote(string id, string type, string note) { var port = Models.Util.Port(); WipService.accountNote insNotes = new MPXMobile.WipService.accountNote(); 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; WipService.insertAccountNoteRequest insNotesInf = new MPXMobile.WipService.insertAccountNoteRequest(); insNotesInf.accountNote = insNotes; var account = port.insertAccountNote(insNotesInf); }