Exemplo n.º 1
0
 public static UserBorrowDto Create(Bike bike, Borrow borrow, Price.Price price)
 {
     return(new UserBorrowDto
     {
         BikeId = bike.Id,
         BikeModel = bike.Model,
         PricePerHour = price.Value,
         TimeBorrowed = borrow.ComputeBorrowHours()
     });
 }