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); }
public string Put([FromBody] DetEvento_Fecha value) { return(gestorDetEvento_Fecha.ActualizarDetEvento_Fecha(value)); }
public string Post([FromBody] DetEvento_Fecha value) { return(gestorDetEvento_Fecha.IngresarDetEvento_Fecha(value)); }
public string ActualizarDetEvento_Fecha(DetEvento_Fecha value) { return(DetEvento_FechaDAO.Actualizar(value)); }
public string IngresarDetEvento_Fecha(DetEvento_Fecha value) { return(DetEvento_FechaDAO.Ingresar(value)); }