Esempio n. 1
0
        public async Task <IActionResult> CancelShareForEveryone(Guid fileId)
        {
            bool result = await _shareService.CancelSharingForEveryone(fileId, _userManager.GetUserName(User));

            if (!result)
            {
                return(BadRequest("Something went wrong"));
            }

            return(Ok(new { Canceled = result }));
        }