public static string Actualizar(DetEvento_Participante value)
        {
            string        rpt = "ok";
            SqlConnection cn  = new SqlConnection(Conexion.cn);

            cn.Open();
            try
            {
                DynamicParameters dp1 = new DynamicParameters();
                dp1.Add("@IdEvento", value.IdEvento);
                dp1.Add("@DNI", value.DNI);
                dp1.Add("@Confirmacion", value.Confirmacion);
                cn.Execute("itData.SP_U_DetEvento_Participante", dp1, commandType: CommandType.StoredProcedure);
            }
            catch (Exception e)
            {
                rpt = "Excepción ocurrida: " + e.Message;
            }
            finally
            {
                cn.Close();
                cn.Dispose();
            }
            return(rpt);
        }
예제 #2
0
 public string Put([FromBody] DetEvento_Participante value)
 {
     return(gestorDetEvento_Participante.Actualizar(value));
 }
 public string Actualizar(DetEvento_Participante value)
 {
     return(DAO.DetEvento_ParticipanteDAO.Actualizar(value));
 }
예제 #4
0
 public string Post([FromBody] DetEvento_Participante value)
 {
     return(gestorDetEvento_Participante.Insertar(value));
 }
 public string Insertar(DetEvento_Participante value)
 {
     return(DAO.DetEvento_ParticipanteDAO.Ingresar(value));
 }