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); }
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; }
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 })); }