public void Delete(DeleteMeetingCmd command) { var actionOwner = userRepository.GetBy(command.ActionOwnerUserName); var meeting = getBy(command.Id, command.SyncId); if (meeting == null) return; meeting.Delete(command.AppType, actionOwner); meetingRepository.Update(meeting); }
public void Delete(MeetingDto dto, AppType appType, Guid syncId) { var userName = securityService.GetCurrentUserName(); var command = new DeleteMeetingCmd(dto.Id, userName, appType, syncId); meetingService.Delete(command); }