示例#1
0
        public static string Ingresar(DetEvento_Ponente value)
        {
            string        rpt = "ok";
            SqlConnection cn  = new SqlConnection(Conexion.cn);

            try
            {
                DynamicParameters dp1 = new DynamicParameters();
                dp1.Add("@DocIdentidad", value.DocIdentidad);
                dp1.Add("@IdEvento", value.IdEvento);
                dp1.Add("@Costo", value.Costo);
                dp1.Add("@Comentario", value.Comentario);

                cn.Execute("itData.SP_I_DetEventoPonente", dp1, commandType: CommandType.StoredProcedure);
            }
            catch (Exception e)
            {
                rpt = "Excepción ocurrida: " + e.Message;
            }
            finally
            {
                cn.Close();
                cn.Dispose();
            }
            return(rpt);
        }
示例#2
0
        public static DetEvento_Ponente Listar(string DocIdentidad, int IdEvento)
        {
            DetEvento_Ponente lis = new DetEvento_Ponente();
            SqlConnection     cn  = new SqlConnection(Conexion.cn);

            try
            {
                DynamicParameters dypa = new DynamicParameters();
                dypa.Add("@DocIdentidad", DocIdentidad);
                dypa.Add("@IdEvento", IdEvento);
                lis = cn.Query <DetEvento_Ponente>("itData.SP_S_ID_DetEventoPonente", dypa, commandType: CommandType.StoredProcedure).First();
            }
            catch (Exception e)
            {
                lis = null;
                var rpt = "Excepción ocurrida: " + e.Message;
            }
            finally
            {
                cn.Close();
                cn.Dispose();
            }
            return(lis);
        }
示例#3
0
 public string Put([FromBody] DetEvento_Ponente value)
 {
     return(gestorDetEvento_Ponente.ActualizarDetEvento_Ponente(value));
 }
示例#4
0
 public string Post([FromBody] DetEvento_Ponente value)
 {
     return(gestorDetEvento_Ponente.IngresarDetEvento_Ponente(value));
 }
 public string ActualizarDetEvento_Ponente(DetEvento_Ponente value)
 {
     return(DetEvento_PonenteDAO.Actualizar(value));
 }
 public string IngresarDetEvento_Ponente(DetEvento_Ponente value)
 {
     return(DetEvento_PonenteDAO.Ingresar(value));
 }