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