To create the service, follow these steps:
- First, create a new class that will hold our service methods and name this class ConWHSVehicleServices.
- The first service will be to update the Vehicle service group, for which we have a contract and processing class already created (ConWHSVehicleGroupChangeContract, ConWHSVehicleGroupChange), to write this method; write a method as follows:
public void ChangeVehicleGroup( ConWHSVehicleGroupChangeContract _contract) { ConWHSVehicleGroupChange changeGroup = new ConWHSVehicleGroupChange(); changeGroup.Run(_contract); }