Interface ITourShipmentRepository
Tour shipment repository
Namespace: Simplic.Logistics
Assembly: Simplic.Logistics.dll
Syntax
public interface ITourShipmentRepository
Methods
| Improve this Doc View SourceGet(Guid)
Get all tour shipments by tour guid
Declaration
IList<TourShipment> Get(Guid tourGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | tourGuid | Unique tour guid |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<TourShipment> | Enumerable of tour shipments |
Remove(TourShipment)
Tour shipment to remove
Declaration
bool Remove(TourShipment tourShipment)
Parameters
Type | Name | Description |
---|---|---|
TourShipment | tourShipment | Tour shipment |
Returns
Type | Description |
---|---|
System.Boolean | True if successfull |
Save(IList<TourShipment>)
Create or update tour shipment
Declaration
bool Save(IList<TourShipment> tourShipments)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<TourShipment> | tourShipments |
Returns
Type | Description |
---|---|
System.Boolean | True if successfull |
SetDeliveryContact(Guid, Nullable<Guid>)
Sets the delivery address id
Declaration
bool SetDeliveryContact(Guid tourGuid, Guid? deliveryContactId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | tourGuid | Unique tour id |
System.Nullable<System.Guid> | deliveryContactId | Delivery address id |
Returns
Type | Description |
---|---|
System.Boolean | True if successfull |
SetLoadContact(Guid, Nullable<Guid>)
Sets the load address id
Declaration
bool SetLoadContact(Guid tourGuid, Guid? loadContactId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | tourGuid | Unique tour id |
System.Nullable<System.Guid> | loadContactId | Load address id |
Returns
Type | Description |
---|---|
System.Boolean | True if successfull |