public static bool AgregarDetallePedido(int codpedido, int codproducto, int cantproducto, decimal precio, decimal subtotal, string CadenaConexion) { Boolean result = false; try { AccesoDatos.AgregarDetallePedido(codpedido, codproducto, cantproducto, precio, subtotal, CadenaConexion); result = true; } catch (Exception) { result = false; throw; } return(result); }