public IEnumerable <CustoOrcamentoModel> Get() { try { var listCustoOrcamento = CustoOrcamentoRepository.List(); foreach (CustoOrcamentoModel custoOrcamento in listCustoOrcamento) { var custoId = MetodosGenericosService.DlookupOrcamentaria("CUSTO_ID", "T_ORCA_CUSTO_ORCAMENTO", $"CUSTO_ORCAMENTO_ID = {custoOrcamento.CUSTO_ORCAMENTO_ID}"); custoOrcamento.CUSTO_OBRA = CustoService.GetComParametro(new CustoQO(int.Parse(custoId), "")).ToArray()[0]; } return(listCustoOrcamento); } catch (Exception) { throw; } }
public IEnumerable <CustoModel> Get([FromQuery] CustoQO custo) { return(CustoService.GetComParametro(custo)); }