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(); }
public void Delete(decimal cnpj) { _conexao.ExecuteProcedure(Procedures.GKSSP_DelEmpresa); _conexao.AddParameter("@Cnpj", cnpj); _conexao.ExecuteNonQuery(); }