Esempio n. 1
0
        public async Task <IActionResult> Delete(int id)
        {
            if (!User.Identity.IsAuthenticated)
            {
                throw new AuthenticationException();
            }
            var result = await _permissionsService.DeletePermission(id);

            var response = new ApiResponse <bool>(result);

            return(Ok(response));
        }