public void Handle(T useCase) { // Example: start a new transaction scope // (or sql transaction or what ever) using (new TransactionScope()) { _decoratedInstance.Handle(useCase); // Commit the unit of work. _unitOfWork.Commit(); } }
public async Task <IActionResult> Get() { return(_presenter.Handle(await _useCase.Handle(new ReadRequest()))); }