func (op deviceServiceLoadByName) Execute() (contract.DeviceService, error) {
	ds, err := op.db.GetDeviceServiceByName(op.name)
	if err != nil {
		if err == db.ErrNotFound {
			return contract.DeviceService{}, errors.NewErrItemNotFound(op.name)
		} else {
			return contract.DeviceService{}, err
		}
	}

	return ds, nil
}
// Execute performs an operation that retrieves the DeviceService associated with a given name.
Execute performs an operation that retrieves the DeviceService associated with a given name.
// Execute performs an operation that retrieves the DeviceService associated with a given name .
func (op deviceServiceLoadByName) Execute() (contract.DeviceService, error) {
	ds, err := op.db.GetDeviceServiceByName(op.name)
	if err != nil {
		if err == db.ErrNotFound {
			return contract.DeviceService{}, errors.NewErrItemNotFound(op.name)
		} else {
			return contract.DeviceService{}, err
		}
	}
	return ds, nil
}
func ( op deviceServiceLoadByName ) Execute ( ) ( contract . DeviceService , error ) { ds , err := op . db . GetDeviceServiceByName ( op . name ) if err != nil { if err == db . ErrNotFound { return contract . DeviceService { } , errors . NewErrItemNotFound ( op . name ) } else { return contract . DeviceService { } , err } } return ds , nil }
Execute performs an operation that retrieves the DeviceService associated with a given name.
Execute performs an operation that retrieves the DeviceService associated with a given name .