public async Task<IActionResult> Get_Entity([FromRoute] string entityId, CancellationToken ctk = default) { var query = new Get_EntityByIdQuery.V1() { EntityId = entityId }; var res = await _queryProcessor.ExecuteAsync(query, ctk); if (res == null) return this.NotFound(); return this.Ok(res); }
public async Task <IActionResult> Get_Entity([FromRoute] string entityId, [FromQuery] EntityResult result, [FromQuery] EntityTest[] tests, CancellationToken ctk = default) { var query = new Get_EntityByIdQuery.V1() { EntityId = entityId, }; var res = await _queryProcessor.ExecuteAsync(query, ctk); if (res == null) { return(this.NotFound()); } return(this.Ok(res)); }