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

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

                cn.Execute("itData.SP_I_DetEvento_Fecha", dp1, commandType: CommandType.StoredProcedure);
            }
            catch (Exception e)
            {
                rpt = "Excepción ocurrida: " + e.Message;
            }
            finally
            {
                cn.Close();
                cn.Dispose();
            }
            return(rpt);
        }
Exemple #2
0
 public string Put([FromBody] DetEvento_Fecha value)
 {
     return(gestorDetEvento_Fecha.ActualizarDetEvento_Fecha(value));
 }
Exemple #3
0
 public string Post([FromBody] DetEvento_Fecha value)
 {
     return(gestorDetEvento_Fecha.IngresarDetEvento_Fecha(value));
 }
Exemple #4
0
 public string ActualizarDetEvento_Fecha(DetEvento_Fecha value)
 {
     return(DetEvento_FechaDAO.Actualizar(value));
 }
Exemple #5
0
 public string IngresarDetEvento_Fecha(DetEvento_Fecha value)
 {
     return(DetEvento_FechaDAO.Ingresar(value));
 }