Ejemplo n.º 1
0
        public async Task <IActionResult> Deactivate(long permisssionId)
        {
            if (permisssionId == default(long))
            {
                throw new BadRequestException("Invalid Permission");
            }
            var result = await _permissionManager.Deactivate(permisssionId);

            return(Ok(new ResponseModel <bool>
            {
                RequestSuccessful = true,
                ResponseCode = ResponseCodes.Successful,
                ResponseData = result
            }));
        }