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); }
public void PostNewIncomingNote(CreateIncomingNoteRequest noteContract) { var currentUser = User; mIncomingNotesService.CreateIncomingNote(noteContract, currentUser.Identity); }
public void CreateIncomingNote(CreateIncomingNoteRequest request, IIdentity currentUser) { var currentUserId = mSystemUsersService.FindUserIdByIdentity(currentUser); mIncomingNoteCommands.CreateNew(request, currentUserId); }