public void Post([FromBody] MaoObraOrcamentoModel maoObraOrcamento) { try { CustosMaoObraService.Post(maoObraOrcamento, maoObraOrcamento.LIST_CUSTO[0]); TotaisOrcamentoService.CalcularTotaisOrcamento(maoObraOrcamento.ORCAMENTO_ID); } catch (Exception) { throw; } }
public OrcamentoModel Post([FromBody] OrcamentoGeralModel orcamento) { try { var orca = OrcamentoService.Post(orcamento); TotaisOrcamentoService.CalcularTotaisOrcamento(orca.ORCAMENTO_ID); return(orca); } catch (Exception) { throw; } }
public MaoObraOrcamentoModel Post([FromBody] MaoObraOrcamentoModel maoObraOrcamento) { try { var maoObra = MaoObraOrcamentoService.Post(maoObraOrcamento); TotaisOrcamentoService.CalcularTotaisOrcamento(maoObraOrcamento.ORCAMENTO_ID); return(maoObra); } catch (Exception) { throw; } }
public ItensOrcamentoIntumescenteModel Post([FromBody] ItensOrcamentoIntumescenteModel itensOrcamentoIntumescente) { try { var itens = ItensOrcamentoIntumescenteService.Post(itensOrcamentoIntumescente); TotaisOrcamentoService.CalcularTotaisOrcamento(itensOrcamentoIntumescente.ORCAMENTO_ID); return(itens); } catch (Exception) { throw; } }
public ItensOrcamentoGeralModel Post([FromBody] ItensOrcamentoGeralModel itensOrcamentoGeral) { try { var itens = ItensOrcamentoGeralService.Post(itensOrcamentoGeral); TotaisOrcamentoService.CalcularTotaisOrcamento(itensOrcamentoGeral.ORCAMENTO_ID); return(itens); } catch (Exception) { throw; } }
public CustoOrcamentoModel Post([FromBody] CustoOrcamentoModel custoOrcamento) { try { var custo = CustoOrcamentoService.Post(custoOrcamento); TotaisOrcamentoService.CalcularTotaisOrcamento(custoOrcamento.ORCAMENTO_ID); return(custo); } catch (Exception) { throw; } }