Beispiel #1
0
        public IHttpActionResult RemoveUserRole(Guid userId, Guid roleId)
        {
            if (userId == Guid.Empty)
            {
                throw new ArgumentNullException("userId");
            }
            if (roleId == Guid.Empty)
            {
                throw new ArgumentNullException("roleId");
            }

            identityManagementService.RemoveUserRole(userId, roleId);
            return(Ok());
        }