public bool Disable(ProductType type) { if (!type.IsEnabled) { return false; } type.IsEnabled = false; _productTypes.Database.SaveChanges(); Event.Raise(new ProductTypeDisabled(type), _instance); return true; }