Exemplo n.º 1
0
 public void UpdateRental(RentalRepresentation rental)
 {
     using (ISQLConnection dataSource = DataSource)
     {
         dataSource.UpdateRental(RepresentationConverter.convertRental(rental));
     }
 }
Exemplo n.º 2
0
 public RentalRepresentation GetLastRentalByToolId(long toolId)
 {
     using (ISQLConnection dataSource = DataSource)
     {
         return(RepresentationConverter.convertRental(dataSource.GetLastRentalByToolId(toolId)));
     }
 }