Exemplo n.º 1
0
        public void ActulizarDefectos(EntityConnectionStringBuilder connection, ReporteDefectos rd)
        {
            var context = new samEntities(connection.ToString());

            if (rd.PRUEFLOS.Equals(""))
            {
                context.UPDATE_reporte_defectos_MDL(rd.FOLIO_SAM,
                                                    rd.PROCESADO,
                                                    rd.MENSAJE);
            }
            else
            {
                context.DELETE_reporte_defectos_MDL(rd.FOLIO_SAM);
            }
        }