Kooboo.Commerce.Products.ProductTypeService.Disable C# (CSharp) Метод

Disable() публичный Метод

public Disable ( ProductType type ) : bool
type ProductType
Результат bool
        public bool Disable(ProductType type)
        {
            if (!type.IsEnabled)
            {
                return false;
            }

            type.IsEnabled = false;
            _productTypes.Database.SaveChanges();

            Event.Raise(new ProductTypeDisabled(type), _instance);

            return true;
        }