public ActionResult GetFolderDocuments([FromHeader] string xAuthToken, string customerId, string libraryName, string folderId) { var requestData = new GetFolderDocumentsRequestData() { CustomerId = customerId, LibraryName = libraryName, FolderId = folderId }; try { var result = _foldersService.GetFolderDocuments(xAuthToken, requestData); if (result == null) { return(NoContent()); } result.Data.ForEach(doc => doc.ParentId = folderId); return(Ok(result.Data)); } catch (Exception exc) { return(StatusCode(StatusCodes.Status500InternalServerError)); } }