public ICommandResult Get(ExperimentoFiltro filtro) { try { var filtros = _repository.Filtro(filtro.MountExpression(), x => x.Nome.ToString(), true, out int totalRegistros, string.Empty, filtro.Offset, filtro.Limit); return(new CommandResult(filtros, totalRegistros)); } catch (Exception e) { return(new CommandResult(new { causa = e })); } }
public async Task <IActionResult> Get([FromQuery] ExperimentoFiltro filtro) { var result = _experimentoOutputHandler.Get(filtro); return(await GetResponse(result, _experimentoOutputHandler.Notifications)); }