public IActionResult DeletarservicoPeca(ServicoPecaViewModel model) { try { _servicoServices.DeletarServicoPeca(model); return(Ok()); } catch (Exception ex) { return(StatusCode(500, ex)); } }
public IActionResult SalvarservicoPeca(ServicoPecaViewModel model) { try { var Id = _servicoServices.SalvarServicoPeca(model); return(Created("", Id)); } catch (Exception ex) { return(StatusCode(500, ex)); } }
public void DeletarServicoPeca(ServicoPecaViewModel servicoPecaViewModel) { _servicoRepository.DeletarServicoPeca(_mapper.Map <ServicoPeca>(servicoPecaViewModel)); }
public int SalvarServicoPeca(ServicoPecaViewModel servicoPecaViewModel) { return(_servicoRepository.SalvarServicoPeca(_mapper.Map <ServicoPeca>(servicoPecaViewModel))); }