예제 #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));
        }
예제 #2
0
 public Task <RentalPrice> AddRentalPrice([FromBody] RentalPrice rentalPrice)
 {
     return(_rentalManager.AddRentalPrice(rentalPrice));
 }