예제 #1
0
 public Fine(FineEntity Fine)
 {
     Id           = Fine.Id;
     DueAmount    = Fine.dueAmount;
     VehicleVin   = Fine.vehicleVin;
     FineResource = Fine.fineResource;
     Vehicle      = new Vehicle(Fine.finedVehicle);
     Debtor       = new Person(Fine.debtor);
 }
예제 #2
0
 public Fine(double dueAmount, string vehicleVIN, string debtorFirstName, string debtorMidName, string debtorLastName, string debtorEGN, FineResource resource, string employeeID)
 {
     this.dueAmount       = dueAmount;
     this.vehicleVIN      = vehicleVIN;
     this.debtorFirstName = debtorFirstName;
     this.debtorMidName   = debtorMidName;
     this.debtorLastName  = debtorLastName;
     this.debtorEGN       = debtorEGN;
     this.resource        = resource;
     this.employeeID      = employeeID;
 }
예제 #3
0
 public FineEntity Add(double DueAmount, string VehicleVin, UserEntity User, PersonEntity Debtor, VehicleEntity FinedVehicle, FineResource FineResource)
 {
     return(Set.Add(new FineEntity
     {
         dueAmount = DueAmount,
         vehicleVin = VehicleVin,
         user = User,
         debtor = Debtor,
         finedVehicle = FinedVehicle,
         fineResource = FineResource
     }));
 }