public void RemoveTenant(int id, bool auto = false) { Service.RemoveTenant(id, auto); CacheNotifyItem.Publish(new TenantCacheItem() { TenantId = id }, CacheNotifyAction.InsertOrUpdate); }
public Tenant SaveTenant(CoreSettings coreSettings, Tenant tenant) { tenant = Service.SaveTenant(coreSettings, tenant); CacheNotifyItem.Publish(new TenantCacheItem() { TenantId = tenant.TenantId }, CacheNotifyAction.InsertOrUpdate); return(tenant); }