예제 #1
0
 public void PostHistoricoStatus(ChamadoHistoricoStatusDto historicoStatus)
 {
     _conexao.ExecuteProcedure(Procedures.GKSSP_InsChamadoHistoricoStatus);
     _conexao.AddParameter("IdChamado", historicoStatus.IdChamado);
     _conexao.AddParameter("IdStatus", historicoStatus.IdStatus);
     _conexao.AddParameter("IdColaborador", historicoStatus.IdColaborador == default(int) ? (int?)null : historicoStatus.IdColaborador);
     _conexao.AddParameter("IdCliente", historicoStatus.IdCliente == default(int) ? (int?)null : historicoStatus.IdCliente);
     _conexao.ExecuteNonQuery();
 }
예제 #2
0
 public void Delete(decimal cnpj)
 {
     _conexao.ExecuteProcedure(Procedures.GKSSP_DelEmpresa);
     _conexao.AddParameter("@Cnpj", cnpj);
     _conexao.ExecuteNonQuery();
 }