public void Approve(ApproveMeetingCmd command) { var actionOwner = userRepository.GetBy(command.ActionOwnerUserName); var meeting = getBy(command.MeetingId, command.SyncId); if (meeting == null) return; meeting.Approve(actionOwner,command.AppType); meetingRepository.Update(meeting); }
public void Approve(long meetingId,Guid syncId,AppType appType) { var userName = securityService.GetCurrentUserName(); var command = new ApproveMeetingCmd(meetingId, syncId, userName,appType); meetingService.Approve(command); }