public async Task <IActionResult> Get(string id, CancellationToken ct) { var accountById = new GetAccountById(Guid.Parse(id)); var account = await _queryProcessor.ExecuteAsync(accountById, ct); return(Ok(AccountDTO.FromQueryResult(account))); }
public object Get(GetAccountById request) { return(WithDb(db => Logic.GetById(request.Id))); }