Exemplo n.º 1
0
        public IActionResult DeleteConfirmed(Guid id)
        {
            _rentService.Delete(id);
            _rentService.Complete();

            return(RedirectToAction(nameof(Index)));
        }
 public void Handle(CreateRentCommand command)
 {
     _RentService.Create(command.Rent);
     _RentService.Complete();
 }