/** * Método para actualizar el registro */ public static void update(decimal id, String name, int state) { using (var conn = new db_entities()) { try { conn.SP_ENTERPRISE_UPDATE(id, name, DateTime.Now, state); } catch (Exception e) { throw e; } } }