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

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

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

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

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

            return true;
        }