コード例 #1
0
 public IActionResult DeletarOrcamentoPeca(OrcamentoPecaViewModel model)
 {
     try
     {
         _orcamentoServices.DeletarOrcamentoPeca(model);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex));
     }
 }
コード例 #2
0
 public IActionResult SalvarOrcamentoPeca(OrcamentoPecaViewModel model)
 {
     try
     {
         var Id = _orcamentoServices.SalvarOrcamentoPeca(model);
         return(Created("", Id));
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex));
     }
 }
コード例 #3
0
 public int SalvarOrcamentoPeca(OrcamentoPecaViewModel orcamentoPecaViewModel)
 {
     return(_orcamentoRepository.SalvarOrcamentoPeca(_mapper.Map <OrcamentoPeca>(orcamentoPecaViewModel)));
 }
コード例 #4
0
 public void DeletarOrcamentoPeca(OrcamentoPecaViewModel orcamentoPecaViewModel)
 {
     _orcamentoRepository.DeletarOrcamentoPeca(_mapper.Map <OrcamentoPeca>(orcamentoPecaViewModel));
 }