コード例 #1
0
        public void CreateNew(CreateIncomingNoteRequest request, Guid userId)
        {
            var note = new iok_ncomingnote
            {
                iok_title = request.Title,
                iok_notedescription = request.Description,
                iok_callid = request.CallId,
                iok_responsibleuser = new CrmEntityReference("systemuser", userId),
                iok_regardingcontact = new CrmEntityReference("contact", request.ContactId),
                new_regardingincident = new CrmEntityReference("incident", request.IncidentId)
            };

            mIncomingNoteRepository.Create(note);
        }
コード例 #2
0
 public void PostNewIncomingNote(CreateIncomingNoteRequest noteContract)
 {
     var currentUser = User;
     mIncomingNotesService.CreateIncomingNote(noteContract, currentUser.Identity);
 }
コード例 #3
0
 public void CreateIncomingNote(CreateIncomingNoteRequest request, IIdentity currentUser)
 {
     var currentUserId = mSystemUsersService.FindUserIdByIdentity(currentUser);
     mIncomingNoteCommands.CreateNew(request, currentUserId);
 }