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 <RentalPrice> AddRentalPrice([FromBody] RentalPrice rentalPrice) { return(_rentalManager.AddRentalPrice(rentalPrice)); }