Disco.Services.DeviceActionExtensions.CanDelete C# (CSharp) Method

CanDelete() public static method

public static CanDelete ( this d ) : bool
d this
return bool
        public static bool CanDelete(this Device d)
        {
            if (!UserService.CurrentAuthorization.Has(Claims.Device.Actions.Delete))
                return false;

            return d.DecommissionedDate.HasValue;
        }
        public static void OnDelete(this Device d, DiscoDataContext Database)