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

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