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