public void RemoveUser(int tenant, Guid id)
 {
     Service.RemoveUser(tenant, id);
     CacheUserInfoItem.Publish(new UserInfoCacheItem {
         Tenant = tenant, ID = id.ToByteString()
     }, CacheNotifyAction.Any);
 }
 public UserInfo SaveUser(int tenant, UserInfo user)
 {
     user = Service.SaveUser(tenant, user);
     CacheUserInfoItem.Publish(new UserInfoCacheItem {
         ID = user.ID.ToByteString(), Tenant = tenant
     }, CacheNotifyAction.Any);
     return(user);
 }