public void UpdateRental(RentalRepresentation rental) { using (ISQLConnection dataSource = DataSource) { dataSource.UpdateRental(RepresentationConverter.convertRental(rental)); } }
public RentalRepresentation GetLastRentalByToolId(long toolId) { using (ISQLConnection dataSource = DataSource) { return(RepresentationConverter.convertRental(dataSource.GetLastRentalByToolId(toolId))); } }