public ActionResult Create(RentalVM model) { Rental rental = new Rental(model); _rentalService.AddRental(rental); return(RedirectToAction(nameof(Index))); }
public ActionResult Delete(string id, RentalVM model) { _rentalService.DeleteRental(id); return(RedirectToAction(nameof(Index))); }