public IActionResult AtualizarServicoPagamento(ServicoPagamentoViewModel model)
        {
            try
            {
                _servicoPagamentoServices.AtualizarServicoPagamento(model);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex));
            }
        }
        public IActionResult SalvarServicoPagamento(ServicoPagamentoViewModel model)
        {
            try
            {
                _servicoPagamentoServices.SalvarServicoPagamento(model);

                return(Created("", ""));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex));
            }
        }
 public void AtualizarServicoPagamento(ServicoPagamentoViewModel model)
 {
     _servicoPagamentoRepository.AtualizarServicoPagamento(_mapper.Map <ServicoPagamento>(model));
 }
 public int SalvarServicoPagamento(ServicoPagamentoViewModel model)
 {
     return(_servicoPagamentoRepository.SalvarServicoPagamento(_mapper.Map <ServicoPagamento>(model)));
 }