Class RegistrationPlateService
Represent the class of the registration plate service.
Inheritance
Implements
Inherited Members
Namespace: Simplic.PlugIn.Logistics
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class RegistrationPlateService : IRegistrationPlateService, IRegistrationPlateRepository
Constructors
| Improve this Doc View SourceRegistrationPlateService(IRegistrationPlateRepository)
Initializes a new instance of RegistrationPlateService.
Declaration
public RegistrationPlateService(IRegistrationPlateRepository vehicleRegistrationPlateRepository)
Parameters
Type | Name | Description |
---|---|---|
IRegistrationPlateRepository | vehicleRegistrationPlateRepository | Instance of IRegistrationPlateRepository. |
Methods
| Improve this Doc View SourceCheckPlate(RegistrationPlate)
Checks if a registration plate with a given identifier already exists in the database.
Declaration
public bool CheckPlate(RegistrationPlate registrationIdentifier)
Parameters
Type | Name | Description |
---|---|---|
RegistrationPlate | registrationIdentifier | The identifier to check for existence in the database. |
Returns
Type | Description |
---|---|
System.Boolean | True if the plate is correct, false otherwise. |
Delete(RegistrationPlate)
Deletes the vehicle registration plate from the db.
Declaration
public bool Delete(RegistrationPlate obj)
Parameters
Type | Name | Description |
---|---|---|
RegistrationPlate | obj | Registration plate that has to be deleted. |
Returns
Type | Description |
---|---|
System.Boolean | A bool value if the delete procedur was successfully. |
Delete(Guid)
Deletes the vehicle registration plate from the db.
Declaration
public bool Delete(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id |
Returns
Type | Description |
---|---|
System.Boolean |
Get(Guid)
Gets a VehicleRegistrationPlate by its id.
Declaration
public RegistrationPlate Get(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The guid from the registration plate you want to get. |
Returns
Type | Description |
---|---|
RegistrationPlate | The registration plate with the parameter guid. |
GetAll()
Gets all VehicleRegistrationPlate.
Declaration
public IEnumerable<RegistrationPlate> GetAll()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<RegistrationPlate> | A list with all Registration Plates from the db. |
Save(RegistrationPlate)
Saves the Registration in the db.
Declaration
public bool Save(RegistrationPlate obj)
Parameters
Type | Name | Description |
---|---|---|
RegistrationPlate | obj | The registration that has the be saved. |
Returns
Type | Description |
---|---|
System.Boolean | A bool value if the save procedur was successfully. |