public object GetExamples() { var request = new DepositRequest() { AccountId = new Guid("0af32a50-b7c3-4919-a7cc-c171c20a97d8"), Amount = 340.5M }; return(request); }
public async Task <IActionResult> Deposit([FromBody][Required] DepositRequest request) { var depositInput = new DepositInput( request.AccountId, new PositiveMoney(request.Amount) ); await _depositUseCase.Execute(depositInput); return(_presenter.ViewModel); }