Affecto.IdentityManagement.WebApi.IdentityManagementController.RemoveGroupMember C# (CSharp) Method

RemoveGroupMember() private method

private RemoveGroupMember ( System.Guid groupId, System.Guid memberId ) : IHttpActionResult
groupId System.Guid
memberId System.Guid
return IHttpActionResult
        public IHttpActionResult RemoveGroupMember(Guid groupId, Guid memberId)
        {
            if (groupId == Guid.Empty)
            {
                throw new ArgumentException("groupId must be defined.");
            }
            if (memberId == Guid.Empty)
            {
                throw new ArgumentException("memberId must be defined.");
            }

            var groupMember = identityManagementService.RemoveGroupMember(groupId, memberId);
            UserListItem userListItem = mapperFactory.CreateUserListItemMapper().Map(groupMember);

            return Ok(userListItem);
        }