Beispiel #1
0
        public async Task <IActionResult> CreateRental(RentalPrice rentalPrice)
        {
            Rental rental = rentalPrice;
            Guid   id     = await _rentalManager.AddRental(rental);

            rentalPrice.id   = id;
            rental.rentalFee = rentalPrice.rentalFee;
            await _rentalManager.AddRentalPrice(rentalPrice);

            return(View("ViewRental", rental));
        }
 public Task <Guid> CreateRental([FromBody] Rental rental)
 {
     return(_rentalManager.AddRental(rental));
 }