public UnitOfWork(RentalContext rentalContext, IMediator mediator) { _rentalContext = rentalContext; _mediator = mediator; }
public RepositoryBase(RentalContext context) { _context = context ?? throw new OArgumentNullException(nameof(context)); }