public IActionResult DeletarOrcamentoPeca(OrcamentoPecaViewModel model) { try { _orcamentoServices.DeletarOrcamentoPeca(model); return(Ok()); } catch (Exception ex) { return(StatusCode(500, ex)); } }
public IActionResult SalvarOrcamentoPeca(OrcamentoPecaViewModel model) { try { var Id = _orcamentoServices.SalvarOrcamentoPeca(model); return(Created("", Id)); } catch (Exception ex) { return(StatusCode(500, ex)); } }
public int SalvarOrcamentoPeca(OrcamentoPecaViewModel orcamentoPecaViewModel) { return(_orcamentoRepository.SalvarOrcamentoPeca(_mapper.Map <OrcamentoPeca>(orcamentoPecaViewModel))); }
public void DeletarOrcamentoPeca(OrcamentoPecaViewModel orcamentoPecaViewModel) { _orcamentoRepository.DeletarOrcamentoPeca(_mapper.Map <OrcamentoPeca>(orcamentoPecaViewModel)); }