public async Task <IActionResult> Index() { var request = new GetEntryRequest(); await _commandProcessor.SendAsync(request); return(Ok(request.Result)); }
public async Task <ActionResult <GetEntryResponse> > GetEntry(int id) { var query = new GetEntryRequest { Id = id }; var result = await _mediator.Send(query); return(Ok(result)); }
/// <summary>Snippet for GetEntry</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetEntryRequestObject() { // Create client DataCatalogClient dataCatalogClient = DataCatalogClient.Create(); // Initialize request argument(s) GetEntryRequest request = new GetEntryRequest { EntryName = EntryName.FromProjectLocationEntryGroupEntry("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"), }; // Make the request Entry response = dataCatalogClient.GetEntry(request); }