//public async Task<OperationResultWithData<IEnumerable<TDto>>> GetMyMeetings() //{ // try // { // return OperationResultWithData<IEnumerable<TDto>>.Success(_meetingService.GetUserMeetings().Select(x => _mapper.Map(x))); // } // catch (AdobeConnectException ex) // { // if (ex.Status.Code == StatusCodes.no_access && ex.Status.SubCode == StatusSubCodes.denied) // { // return OperationResultWithData<IEnumerable<TDto>>.Error("You do not have permission to access this item."); // } // string errorMessage = GetOutputErrorMessage("GetMyMeetings", ex); // return OperationResultWithData<IEnumerable<TDto>>.Error(errorMessage); // } // catch (Exception ex) // { // string errorMessage = GetOutputErrorMessage("GetMyMeetings", ex); // return OperationResultWithData<IEnumerable<TDto>>.Error(errorMessage); // } //} //public async Task<OperationResultWithData<IEnumerable<TDto>>> GetSharedMeetings() //{ // try // { // return OperationResultWithData<IEnumerable<TDto>>.Success(_meetingService.GetSharedMeetings().Select(x => _mapper.Map(x))); // } // catch (AdobeConnectException ex) // { // if (ex.Status.Code == StatusCodes.no_access && ex.Status.SubCode == StatusSubCodes.denied) // { // return OperationResultWithData<IEnumerable<TDto>>.Error("You do not have permission to access this item."); // } // string errorMessage = GetOutputErrorMessage("GetSharedMeetings", ex); // return OperationResultWithData<IEnumerable<TDto>>.Error(errorMessage); // } // catch (Exception ex) // { // string errorMessage = GetOutputErrorMessage("GetSharedMeetings", ex); // return OperationResultWithData<IEnumerable<TDto>>.Error(errorMessage); // } //} public async Task <OperationResultWithData <IEnumerable <TDto> > > FolderContent(string folderScoId) { try { if (string.IsNullOrWhiteSpace(folderScoId)) { throw new ArgumentException("folderScoId can't be empty", nameof(folderScoId)); } return(_meetingService.GetFolderMeetings(folderScoId).Select(x => _mapper.Map(x)).ToSuccessResult()); } catch (AdobeConnectException ex) { if (ex.Status.Code == StatusCodes.no_access && ex.Status.SubCode == StatusSubCodes.denied) { return(OperationResultWithData <IEnumerable <TDto> > .Error("You do not have permission to access this item.")); } string errorMessage = GetOutputErrorMessage("FolderContent", ex); return(OperationResultWithData <IEnumerable <TDto> > .Error(errorMessage)); } catch (Exception ex) { string errorMessage = GetOutputErrorMessage("FolderContent", ex); return(OperationResultWithData <IEnumerable <TDto> > .Error(errorMessage)); } }