// this action shares or unshares the selected files and folder and returns the link to them public IActionResult Share(string currFolderId, string[] foldersId, string[] filesId, bool openAccess) { string link = _fileSystemService.ChangeAccess(currFolderId, User.FindFirstValue(ClaimTypes.NameIdentifier), foldersId, filesId, openAccess); return(new ObjectResult(link)); }